Fix behavior if libudev isn't enabled