Fix RPROMPT on non-git (e.g. hg) repository