anchor.diff:  
   local function look_for_lua_install ()
   	print("Looking for Lua interpreter")
  -	local directories = { [[c:\lua5.1.2]], [[c:\lua]], [[c:\kepler\1.1]] }
  +	local directories
   	if vars.LUA_PREFIX then
  -		table.insert(directories, 1, vars.LUA_PREFIX)
  +		directories = { vars.LUA_PREFIX }
  +	else
  +		-- no prefix given, so use path
  +		directories = (os.getenv("PATH",";") or "")
  +		local i = 1
  +        while i ~= 0 do directories, i = directories:gsub(";;",";") end  --remove all doubles
  +		directories = split_string(directories,";")
  +		-- if a path element ends with "\bin\" then remove it, as the searcher will check there anyway
  +		for i, val in ipairs(directories) do
  +			-- remove trailing backslash
  +			while val:sub(-1,-1) == "\\" and val:sub(-2,-1) ~= ":\\" do 
  +				val = val:sub(1,-2)
  +			end
  +			-- remove trailing 'bin'
  +			if val:upper():sub(-4,-1) == "\\BIN" or val:upper():sub(-4,-1) == ":BIN" then
  +				val = val:sub(1,-5)
  +			end
  +			directories[i] = val
  +		end
  +		-- finaly add some other default paths
  +		table.insert(directories, [[c:\lua5.1.2]])
  +		table.insert(directories, [[c:\lua]])
  +		table.insert(directories, [[c:\kepler\1.1]])
   	end
   	if vars.LUA_BINDIR and vars.LUA_LIBDIR and vars.LUA_INCDIR then
   		if look_for_interpreter(vars.LUA_BINDIR) and 
  
positive.code: -- ***********************************************************
  local function look_for_interpreter (directory)
  	if vars.LUA_BINDIR then
  		if exists( S"$LUA_BINDIR\\lua$LUA_VERSION.exe" ) then
  			vars.LUA_INTERPRETER = S"lua$LUA_VERSION.exe"
  			print(S"       Found $LUA_BINDIR\\$LUA_INTERPRETER")
  
negative.code: System architecture detected as: $UNAME_M
  
  ]])
  
  
  -- ***********************************************************
  -- Install LuaRocks files
  