added compatibility with grunt 0.4.x by refactoring registerHelper