Fixed the bug that the wrong module was searched.

When require-from is used in a mocha script, then it needs to look into its parent module's (the mocha script) children to find the module with the extra exports.