os detection fixed