anchor.diff:  	end
   
   	if result then
  -		vars.LUA_RUNTIME = result
  -		print("    "..vars.LUA_INTERPRETER.." uses "..tostring(result)..".DLL as runtime")
  -		return true
  -	end
  -	return false
  +		print("    "..f.." uses "..tostring(result)..".DLL as runtime")
  +	else
  +		print("    No runtime found for "..f)
  +	end
  +	return result
  +end
  +
  +local function get_runtime()
  +	-- first check interpreter
  +	vars.LUA_RUNTIME = get_file_runtime(vars.LUA_BINDIR, vars.LUA_INTERPRETER)
  +	if not vars.LUA_RUNTIME then
  +		-- not found, check link library
  +		vars.LUA_RUNTIME = get_file_runtime(vars.LUA_LIBDIR, vars.LUA_LIBNAME)
  +	end
  +	return (vars.LUA_RUNTIME ~= nil)
   end
   
   local function look_for_lua_install ()
  
positive.code: 	os.remove(outfile)
  	if not content then
  		print("    Failed to analyze "..infile.." for the runtime used")
          return false
      end
  
  	-- lookup
  
negative.code: 	return false
  end
  
  local function get_file_runtime(p,f) -- path, filename
  	local infile = p.."\\"..f
  	local outfile = "output.txt"
  	local content
  	-- analyze binary
  