[AMOS commit] MDL-49104 repository_s3: backport of MDL-43725 Committed into Git: 2015-03-09 16:13 UTC