fixed two edge case bug in the filesystem loader

* fixed caching when two templates have the same template name but a different namespace
* fixed the error message when a template has a namespace