Add support for grunt 0.4.0

Fixes #636.