Fix git branch completion if grep output is not the default one

Signed-off-by: lledey <lledey@gmail.com>