Check whether a Grunt task exists.