s3: added support for exponential backoff and S3_RETRIES env var