Fix has_template_for_path