When creating a zip using pkg_zip with files nested in a directory, the zip only contains the files, and not the entries for the directories. This causes unpacking to fail with some "unzip" implementations.
pkg_zip should create all the directory entries required for a file before adding that file to the zip.