Avoid calling exist() with MEvaluate, as it's very slow on OS X and Linux.
Remove options from iMScript because they were not used.
Avoid calling rehash on OS X and Linux because it's not necessary there.