Support for sub directories in templates directory