Fixed remote s3readwrite to write the file locally.