fixed directory structure for templates

So that new Flask works with the correct structure.