Fixing template names to add extensions as required by templating engine