Fixes unit test on recursiveModuleCompile

This removes previous assertion and adds a new test to check for current working directory being the same after recursive compiling.