grunt 0.4.0 compatibility. fixes #8, fixes #5, fixes #4, fixes #3