Setting correct path to template.