prevent going through systemd/upstart code, except on Linux