Made Gruntfile compatible with Windows.
Added support for `when-not` and `if-not`.