Stop flagging AMD modules that inject a local require as CommonJS-wrapped.
Fix AMD export code and make it consistent with node export code.