Fix issues with requirejs mocha hack