Fixes bad saving of script file at project root