Fix bathing to template when run from outside module