Make require cache modules like native does