[Refactor] Use matchdep to handle grunt dependencies

Use [matchdep](https://npmjs.org/package/matchdep) to manage grunt dependencies.