Try to autodetect systemd and only use it if present.