Merge pull request #408 from boegel/develop

fix regtest issues
purge loaded modules after creating fake module, not before
Merge pull request #409 from boegel/module_purge

purge loaded modules after creating fake module, not before
specify job dependencies with 'afterany'