Fix configfile unittests 325

Fixes #325 

This is an implementation of @exarkun 's third suggestion on #325, using an environment variable.