zsh: prompt: handle detached head