Generate output path for template files