Export the function for resolving a package's canonical path