fix up resource loading when installed as a package