Bugfix for template loading in dev mode (modules' templates not loaded)