Fixed issue where template was not supposed to be installed for a given environment