Fixing AWS S3 `listContents()`

AWS S3 `listContents()` haven't returned directories if "fake" directory haven't been created previously (an empty file uploaded with trailing slash in the key). Fixed in pull request.