Fix os detection