Fixing preexec to be more resilient.

- Append semicolon to existing PROMPT_COMMAND if it doesn't already exist.