Refactored plugin to support Grunt 0.4.x.