BUG: Fixed assumption that TMPDIR would be set in the environment
ENH: Added environment variable control of config files