Update to support Amazon Linux AMI detection.

Added patch for Amazon AMI detection based on

http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AmazonLinuxAMIBasics.html#IdentifyingLinuxAMI_Images/