safer `mocha` detection
1.2.4