fix issue 812:  only walk the first/shallowest version of each package
Merge pull request #1023 from drewfish/dupe-libs

fix issue 812:  only walk the first/shallowest version of each package