Detect if grunt and mocha are installed before installing other
dependencies.