$exists checks for the presence of a directory or a file, so your script would attempt to run if there was a directory called "aliases.ini" which is of course a valid name.

I haven't tried it to see if that would make mIRC throw out an error but I guess it would when it tries to use /filter. You should use $isfile.