Simpler environment detection