Correct file permissions of publish script