Can you please provide a case where it would fail? 

I've tested it against the given example at  #676 and few of my own (with two-level dependency), and it worked as expected.