Recursively searches gem dependencies and subdependencies