simplify Environment::loadConfiguration

Clean up Environment::loadConfiguration