Added detection of names for local packages.

* Fixes #9