use require.resolve to find sha1.js