Use kdesu to edit unit file as root
Use dbus to check for installed systemd and its version instead of pkgconfig