fix SCRIPT_ROOT