Fix for matchdep breaking by missing package.json

Proposed fix for #11 matchdep will break when there is no package.json in the project.

Closes gh-12.
add npm badge