Support directory traversal to find package root when loading and unloading