configure: Fix systemd detection