cleanup OS detection