check for instilation of grunt rather than if the directory exists

This fixes the problem of if the grunt instilation fails it doesn't restart properly discovered in #136.  It doesn't fix all of #136, just this aspect.