Better OS detection