Handle environment in configuration