[LuaJIT] Strange import on windows

What’s different about importing from the main main.lua script with style

CRAP = require("src/crap")

which works on all platforms. And local import in another file in function ?

local function TestImport()
    local crap = require("src/crap")
    crap:run()
end

This working on linux and mac, On windows: crap not found.
But the search path is set correctly. In the src/ directory, it looks for.