Ensure temporary directory exists.