Make S3 env vars only read under production settings.