Tidy up the unpack code Also fix a bug for tar files that contain entries for files without preceding entries for the directories they are in.
Tidy up the unpack code
Also fix a bug for tar files that contain entries for files
without preceding entries for the directories they are in.

alphaHeavy/cabal,alphaHeavy/cabal