fixing a the handling of a tar without directories