fix issue when recursive install finds already installed dependency and then assumes other dependecies are installed as well