Simplify udev logic and fix typo