fixed s3 compatibility and available name logic
Merge pull request #2 from antonagestam/fix-s3-compatibility

fixed s3 compatibility and available name logic