fix script file mode