fix S3 sync script