[module] Fix requiring of cached modules