Fix paths to templates.