Fixed s3 cloud exporting functionality.
Fixed and retested integration test to make sure.