Set and detect project environment via .environment file.