Refactored update_udev_rule_key method