bug fixes

Made the script run again. This update fixes the MODS_PATH issue.