Config\Configurator: Added `detectEnvironment()`