Alternate technique for finding the loaded instance of mocha.

Recurse through the loaded modules and find mocha by its id property.