Fix rework_module so it doesn't drop optional dep choices

fixup for fecd23e6662265aa33e49f05b016d5e6d253b5ec Pretty astonishing nobody
cared for two years...