Fix bug in OpenSSL v2 support testing
diff --git a/tests/ssl-opt.sh b/tests/ssl-opt.sh
index 19b2b9b..79de1b7 100755
--- a/tests/ssl-opt.sh
+++ b/tests/ssl-opt.sh
@@ -69,7 +69,7 @@
 # skip next test if OpenSSL can't send SSLv2 ClientHello
 requires_openssl_with_sslv2() {
     if [ -z "${OPENSSL_HAS_SSL2:-}" ]; then
-        if openssl ciphers -ssl2 >/dev/null 2>&1; then
+        if $OPENSSL_CMD ciphers -ssl2 >/dev/null 2>&1; then
             OPENSSL_HAS_SSL2="YES"
         else
             OPENSSL_HAS_SSL2="NO"