[MODULES-185] More robust native library detection