Hack to get this to work with mocha-phantomjs.

mocha-phantomjs parses the reporter and then complains if you try to use
require() since it runs in the browser instead of Node. If running in
the browser however, the 'Mocha' prototype should already exist in the
global namespace so try to resolve the 'Base' reporter from there
instead.