[module] Implement local require() function