Allow S3 region to be nil instead of empty string

Fixes SocketError: getaddrinfo: nodename nor servname provided, or not known