test-
issue2137: don't use $PWD; use `pwd` instead
This fixes test failure on Solaris, as described on
http://mercurial.selenic.com/wiki/WritingTests
test-extension: changed environment variables must be exported again
This fixes failure on Solaris because HGRCPATH wasn't unset.