Fixed check for opensslPath. Added tests for it.