Script generation of the S3 caching config file
bug fixes