Write udev rules correctly when renaming multiple devices

bnc#894089h
> \# Updates existing *key* in a *rule* to new *value*.
> \# Modifies *rule* and returns it.
> \# If *key* is not found, *rule* is unchanged.