fixed several bugs in the grunt file