Fix _WORKING_DIR global broken by commit 3da877fd5473
Add new globals _PREMAKE_DIR, _MAIN_SCRIPT, and _MAIN_SCRIPT_DIR