Replace use of Triple::getEnvironmentName with the simpler
Triple::getEnvironment.