Finds dependencies by looking through the available paths