detect mocha installed with packin