Environment based configuration helper.