Add support for basedir option passed to insert-module-globals
document opts.basedir and opts.resolve
3.4.0