make sure MODULEPATH is still set correctly after purging
add debug info when running module commands
Merge pull request #415 from boegel/develop

make sure MODULEPATH is still set correctly after purging