Fix os detection parts.