[jhc] darcs patch: fix environment cleanups in regress test (and 2 more)