Fixed bug in run_with_env in the way that it was 'purging' modules currently loaded in a user's env. It was looping through all loaded modules and doing 'module unload' on each, which is buggy when some modules setup environment variables that other modules depend on.  Switched to using 'module purge' instead, which works properly. -nw
Fixed bug in run_with_env in the way that it was 'purging' modules currently loaded in a user's env. It was looping through all loaded modules and doing 'module unload' on each, which is buggy when some modules setup environment variables that other modules depend on.  Switched to using 'module purge' instead, which works properly. -nw

StanfordBioinformatics/SJM,StanfordBioinformatics/SJM,StanfordBioinformatics/SJM