Added work dir cleaning function to TestCompiler.