fix gruntfile typo
also consider optionalDependencies