In define with id specified, 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.