Fix directory structure of template.