fix incorrect detection of systemd