bash_prompt: use a single function for the git prompt output

The use of multiple smaller and more specialized functions for
the git prompt output only pollutes the global space even more
(the functions cannot be unset due to the fact that they are
called every time the prompt string is shown).
bash_functions: fix small copy/paste error