fix grunt check and other grunt tasks