anchor.diff:  -- Cleanup
   -- ***********************************************************
   -- remove regsitry related files, no longer needed
  -exec( S[[del "$FULL_PREFIX\LuaRocks.reg.*" > nul]] )
  +exec( S[[del "$FULL_PREFIX\LuaRocks.reg.*" >NUL]] )
   -- remove pe-parser module
  -exec( S[[del "$FULL_PREFIX\pe-parser.lua" > nul]] )
  +exec( S[[del "$FULL_PREFIX\pe-parser.lua" >NUL]] )
   
   -- ***********************************************************
   -- Exit handlers 
  
positive.code: 	f:close()
  	print(S"Created LuaRocks command: $BINDIR\\"..c..".bat")
  end
  -- configure 'scripts' directory
  if vars.SCRIPTS_DIR then
  	mkdir(vars.SCRIPTS_DIR)
  	if not USE_MINGW then
  		-- definitly not for MinGW because of conflicting runtimes
  		-- but is it ok to do it for others???
  		exec(S[[COPY lua5.1\bin\*.dll "$SCRIPTS_DIR" >NUL]])
  	end
  else
  	if not USE_MINGW then
  	mkdir(S[[$ROCKS_TREE\bin]])
  		-- definitly not for MinGW because of conflicting runtimes
  		-- but is it ok to do it for others???
  		exec(S[[COPY lua5.1\bin\*.dll "$ROCKS_TREE"\bin >NUL]])
  	end
  end
  
  
  -- ***********************************************************
  -- Configure LuaRocks
  
negative.code: 
  -- does the current user have admin priviledges ( = elevated)
  local function permission()
  	return exec("net session >NUL 2>&1") -- fails if not admin
  end
  
  -- rename file (full path) to backup (name only), appending number if required
  