.bash_prompt: Interpret escape sequences correctly in all cases

Closes #407.
Merge remote-tracking branch 'upstream/master'

* upstream/master:
  .bash_prompt: Interpret escape sequences correctly in all cases