Support configurable region for S3

fixes issue #421