Fix S3 hostname issue

Closes #7
Patch release 0.3.1