fixing installed version detection