fixed loading of environment files