Fix paths for templates