Fixing permissions of script file