Improved unregistering of ghc-pkg user packages.