change mode of file in the setup_env and script.