fixes #125, multiple folders/template file