Fix exception in lib/s3.py when metadata API n/a

When running in an environment other than Amazon EC2, we obviously
need to fail silently when the metadata API can't be contacted.