fixed bug with OS detection