Added detection of names for local packages.

* Fixes #9
Merge pull request #10 from brownhead/john/issue9

Added detection of names for local packages.