Better deciding of ostype