zsh: fix git prompt for 'detached head' case