tar: fix a bug where autodetection messes up -z on extract