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