[04-tools]: minor refactoring of Gruntfile.js