Keeping aws plugin compatible with elasticsearch < 1.0.0.RC2

Hey Igor!

Following Shay's advice, I did some modifications in azure plugin to keep it compatible with elasticsearch 0.90.x versions. Here is a PR which basically does the same thing in aws.

What do you think?

Hope this helps