Simplify the package path guessing.