Fixed os detection