Fix searching previous installed version