Only set s3 stuff if the env vars are present since it errors out without them