Corrected dependsOn() calculation, fixed edge case where subproject is
not an ivy project.