improving check to see if a version is already installed