Fixed package file resolution. Fixes #718, #720.
Merge pull request #724 from pluma/npm-partial-filenames

Fixed package file resolution. Fixes #718, #720.