Fix bug with template names trying to be resolved as DNS hostnames