fixed problems when pre-set PROMPT_COMMAND has trailing semi-colon