Back to Andrew's working changes that create a temp dir on any system for logging.