correct OS detection