Add type check for `opts.basedir`
Merge branch 'patch-2' of https://github.com/ForbesLindesay/node-browserify
5.13.1