packageHash() just take pkgDir as an argument