upgraded Template Loader allowing to be reusable for multiple directories