Improve errors on crypto/openssl_version badness

When these tests fail, they currently do so in an unhelpful way. They should log the offending strings when the version strings don't match.

Extracted from legacy/trac#25549 (moved).