Fixes to S3 support to enable use via bcbio-vm