erc-archive: fix basename issues