bsdcat,cpio,tar: derive version string from archive.h
(cherry picked from commit 2ff66a915526b6509ca57f2046bc7b20b0de8a61)