added working dir to TemplateProcessor