fix s3 prefix generation