Fixing S3 input and output

- Input: Fixing inclusion of library ( LOGSTASH-1321 )
- Input: adding better validation for region
- Output: Fixing region validation ( LOGSTASH-1319 )