fixed problems when pre-set PROMPT_COMMAND has trailing semi-colon
Merge pull request #18 from maddingo/master

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