Fix S3 folder creation for new AWS API

This also fixes the unit tests

Fixes https://github.com/owncloud/core/issues/11725

S3 unit tests now all pass for me locally.