Bugfix in detectEnvironment()