Cleanup most of the DIY extension detection/dl() code into nice clean wfDl()