support for EC2 IAM roles with Amazon S3 file store/backup
refactor multiple instances of S3 key check logic to single variable
Merge pull request #2511 from windhamg/s3_iam_role

support for EC2 IAM roles with Amazon S3 file store/backup