Fix error handling of invalid YAML files
Fix error handling of invalid YAML files

Ruby 1.9.1 and 1.9.3 use a YAML library that throws exceptions
differently than on 1.8.7.

WangKaimin/s3_website,xpekatt/s3_website,SivagnanamCiena/s3_website,page-io/s3_website,dojo4/s3_website,WangKaimin/s3_website,pathawks/s3_website,dojo4/s3_website,pathawks/s3_website,SivagnanamCiena/s3_website,page-io/s3_website,xpekatt/s3_website