Only run npm install if Gruntfile exists

Some mainstream libraries like requireJS will crash if you run npm
install