hooks/do-fetch/00-distfiles: improve previous to handle all cases.