Handle PROMPT_COMMAND ending in a semicolon with possible spaces after it (issue 3358)