fixed conditional check

env.dist will contain `S3_EMULATION=false`, so that the check by default will rely only on the s3_key. However, if there IS an s3_key, the S3_EMULATION flag can override s3 publication.