Fix os detection condition.