fix SCRIPT_HOME on production