Improve Bash prompt when Git's HEAD is detached

When HEAD is detached, the prompt will look like the following:

  ~/src/saffron-js <detached 19a96c7: Implement grammar parsing>
  $