Make sleep and shutdown functions work on systemd's logind