Check early that the config target exists and isn't a template