add `path` option to require.resolve instead
Merge pull request #6 from rvagg/file-only

add `path` option to require.resolve instead