Port gnome-session commit ad66350c.

This prevents crashes when cinnamon-session is compiled without systemd support. Fixes #24.