Use Archive::Tar and IO::Compress instead of the system tar/gzip/bzip2. Temporarily remove lzma.