Optimize gruntfile.js

- Improve the workflow