hooks/do-fetch/distfiles: simplify the code considerably.