Add support for basedir option passed to insert-module-globals

I was trying to influence the outgoing filename by setting basedir in the bundle options, but that wasn't working because the option isn't passed to insertGlobals. This PR just adds that option to the insertGlobals call.