workaround S3 folder creation bug

folder creation caused an error when prefix was nil, which was the
case in the new project template.

there's is still errors when using folders though, but they only
happen when trying to attach files now.