The problem seems to be that the xpak is copied in the temporary directory, which is used as the “PKGDIR”'s root. The solution should be as simple as using a sub-directory for the PKGDIR.