Fixed path assert (to be compatible with LuaJIT).