fix reference to SCRIPT_DIR