Tweak the environment settings for scripts