Refactor getFlatPackageInfo to better deal with bad xar compression.