Fix problem where PROMPT_COMMAND ends in a semicolon