Fixing bug in hidapi autodetection