Fixing environment script.