(core) fixed template directory setup (partially broken with template overrides)