Replaced Tar and gzip with libarchive.