Try to detect systemd by checking for its named cgroup hierarchy.

Fixes #342