Quickfix to prevent 0-byte files written to Amazon S3
AwsS3 adapter: fixed rename