Only build git prompt if git is available
Add SVN revision number to git prompt if available
Handle more weird configuration of git folders

Add support for a prompt in a work tree wich would not contain its .git
folder.
The opposite (prompt in .git folder which is not in a work tree) is
still not supported.