Improve compatibility with browserify-shim

I think.