Use the new style of comparing vs group_names

Rather than determine if `inventory_hostname` is inside of the entire group dict, let's just see if the group name exists in `group_names`.