Moved git check to first grep