Fix mocha environ to run in intellij