rule-generator: make sure /etc/udev/rules.d/ exists prior to trying to write to it

Signed-off-by: Ian Stakenvicius <axs@gentoo.org>