In define with id specifies, module.exports is always used as this instead of m.exports

This patch uses `m.exports` instead, which is already used in other places in the nearby code.