COOK-2150: conducting hostgroup searches based on the environment, if appropriate.