[bash] custom-prompt-git: use $(grep -q) instead of redirecting output