@geekmaster:
Heh. Downside of using PWD as a tmpdir and using a wildcard or . as input from that same directory? You'll probably end up eating your own tail

.
Does that (i.e., you getting an extra kindletool_create_tarball_XXXXXX file in your package) always happen, or was that one a fluke? (Or a remain of the previous broken builds, some of which did not delete every tmp file properly).
IIRC, libarchive doesn't care whether one uses / or \, so both should work, but I may be misremembering that, or there's another issue elsewhere...
Anyway, thanks for your reports & various tests, glad we got most of it worked out

.