Changed amazon s3 adapter to create a real directory