fix auto-detection of udev implementation