only jenkins will call mocha directly, should fix stderr redirection