fixes #6861 - properly detect host group provisioning in the templates