Use os.TempDir to pick default location for log files.

The previous code was a historical artifact.