fix os detection, tesseract installation check