Use retry library to automate retrying in gitlib-s3