specify environment explicitly for doctests

the git interface seems to ignore changes made to os.environ