Fix for finding grunt file

If grunt file is not found, go into an infinite loop