Use writeTemplateDir for src template directory