packageHash() takes pkgDir as an argument