[s3] Compatibility with fakes3.
Merge pull request #5703 from ethercrow/fakes3

[s3] Compatibility with fakes3.