fix checks for already installed version