Fix configfile unittests 325

Fixes #325 

This is an implementation of @exarkun 's third suggestion on #325, using an environment variable.
Some tests use this and some tests use `"path/to/somefile.cfg"`. Is one better than the other?