fix typo that only retain one entry from modextrapaths and overwrites the modextravars entries
add unit test for make_module_step
Merge pull request #704 from boegel/fix_typo_modextrapaths

fix typo that overwrites most of generated setenv/prepend-path statements