Create a global config object once at first import of the module.

This significantly reduces the number of temporary directories created
during a suite run.
Global config object only creates a temp dir when needed.
Corrected a typo in a comment.
Merge pull request #278 from hjoliver/266-tmpdir-cleanup

For Issue 266: too many temp dirs