detect linux before detecting brokedness