Fixing various prompt issues with bash ReplWrapper

allow matching a regular expression,
use setUp and tearDown to putenv & getenv PS1, PS2
unset PROMPT_COMMAND
syntaxerr: missing r'literal' for unset PS1
Minor fixes for replwrap tests
Merge pull request #71 from pexpect/replwrap-test-fixes

Fixing various prompt issues with bash ReplWrapper