`require()` rewritten in plain Lua