Fix incorrect condition in Grunt task

Fixes #164