Fix paths for templates.