udev: move string copy functions to shared/
timedated: remove left-over distribution specific code