AWS credentials can be blank, IAM role will be used if this is the case.

This is more of an example as I am sure that it needs more work to fit in with your library (and you probably don't want the version changes).

This change will allow the library to operate using IAM roles when used within an EC2 instance.