Bugfix on bash prompt

I tried to cancel the last pull request, but you were so fast!  The PS1 now functions correctly deeper inside a repository - I really should have tested more thoroughly first