Alternate approach to appending to PROMPT_COMMAND

Seems to work well no matter what weirdness is already in
PROMPT_COMMAND.

Thanks @godlygeek. Closes #99
Merge branch 'master' into cleanup