Use app-arch/libarchive to use zip and tar archives from scripts.