Require returns the actual module.exports object

The current implementation was using a temporary object, breaking
compatibility with node's require and making some pure nodejs components to
stop working.