check that path is character in package_root