CLOUDIFY-1851 Fixed error uploading to S3