suppress an error when not in a git project directory and switch to fgrep for speed