Fix init system detection on linux