Fixing various prompt issues with bash ReplWrapper

1. allow matching a regular expression
2. use setUp and tearDown to putenv & getenv PS1, PS2
3. unset PROMPT_COMMAND
I think it's redundant to do this in seUp and again inside the test.