use pkg_resource to ensure that templates can be rendered for task history pages