Fix duplication of existing S3 files