Fixes #194. Checks for both paths of openssl