libsvm: fix dylib ID basename

Fixes #29470.