Changed the config of the registry and index root paths so that file and s3 based registries have different sections in the config file.
Now seems to be fully working with S3!
Changed the conf file to pull the AWS access key and secret from the environment