fixing a the handling of a tar without directories

This fixes issue #39