fix from ulrich & love @iis
handle multiple location for libsofthsm