fixed pkcs15 version check

Closes #215