Don't Fail on Self-Dependent Packages

Correctly handle situation where a package depends on itself. Add test for new behavior.

Again, no problem with respect to copyright assignment stuff - let me know.