Allow to fallback to S3 when S3-like storage fails

The intent is to be able to use a proxy server in front of S3, and fallback
to S3 if the proxy server fails for some reason.