Add -I flag to Git#grep. See https://github.com/gollum/gollum/issues/858