Change filemode for script.