implement tar format guessing

Try "posix" and "gnu" formats if tarball re-creation with the default
tar format fails.

Makes pristine-tar more compatible accross different Linux distributions
as the default format used by tar varies.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
changelog