Final OS detection