fixed SCRIPT_DIR variable