detect and install upstart or systemd