fix issue#658 list not working with linked packages

This is attempting to fix the issue I noticed whereby if you link a repository (rather than install it), `bower list` doesn't show the `main` property.

I took most of the changes from the code from the _readInstalled() method.

Submitted for comment - working on a test.