Get the cluster to use from the templates files. Fix the template selection