Improvements to examples/test (S3 conn, version detection).