ensure mocha is installed in time