fix os detection