add guard when loading config file for an unknown environment