bash_prompt: make the git status detection more lenient

Fixes the status detection with newer versions of git (they removed the hashes along the left).