region configuration for S3

small changes to handle region setting, it's more a quick fix than anything (to make it work with my project) but it could be implemented fully quiet easily i think.
Hope it helped a bit :)