Before unpacking pkg files, first create the pkg metafile (temp fix for #7).