Use proper quoting when handling PROMPT_COMMAND

May fix issue #250.