fixes Bug 1008115 - Improve gruntfile