Fixed legacy engine patches not finding $

Old scripts that monkey-patched engine functions and used the $ function
should now work again.

Also re-ordered the Import menu.