better semicolon handling in PROMPT_COMMAND