Fix S3 cache environment variable usage