Fixed #22681 -- Made TarArchive recognize leading directories properly.