avoided unnecessary git call from `git_prompt_status`

The primary use of `git_prompt_status` is in prompts, which demands that the function should be as fast as possible. Taking an early exit from this function on non-git directories saves around `60ms` on my machine.