Don't use 'self' in module loader shims

It is browser-specific, and people might also want to
load the primitive way outside of browser.

Closes #363