Fix rework_module so it doesn't drop optional dep choices

fixup for fecd23e6662265aa33e49f05b016d5e6d253b5ec
Pretty astonishing nobody cared for two years...
Merge pull request #99 from v4hn/yet-another-dont-drop-dep-choices

Fix rework_module so it doesn't drop optional dep choices