Fixed some gruntfile.js bugs