anchor.diff:  REM through all of the search paths to try and find it. If that fails, then we
   REM continue onto the next downloader tool.
   :check_wget
  +if not defined WGET_OPTS ( set "WGET_OPTS=-nc" ) else if defined WGET_OPTS ( set "WGET_OPTS=%WGET_OPTS% -nc" )
  +if not defined PACKER_DEBUG ( set "WGET_OPTS=%WGET_OPTS% -nv" ) else if defined PACKER_DEBUG if "%PACKER_DEBUG%" == "0" set "WGET_OPTS=%WGET_OPTS% -nv"
  +
   set wget=
   for %%i in (wget.exe) do set wget=%%~$PATH:i
   if defined wget goto wget
  
positive.code: 
  "%curl%" --version >NUL 2>NUL
  if errorlevel 1 goto exit1
  
  if not defined CURL_OPTS ( set "CURL_OPTS=-L" ) else if defined CURL_OPTS ( set "CURL_OPTS=%CURL_OPTS% -L" )
  if defined PACKER_DEBUG if not "%PACKER_DEBUG%" == "0" set "CURL_OPTS=%CURL_OPTS% --verbose"
  
  REM It seems that curl works. We're pretty fortunate since it was pretty much
  REM our very last shot. So let's try and download the url that the caller
  
negative.code: REM nothing left to try but curl.exe which came for free with the build. We
  REM first need to locate it and make sure that it actually works.
  :check_curl
  if not defined CURL_OPTS ( set "CURL_OPTS=-L" ) else if defined CURL_OPTS ( set "CURL_OPTS=%CURL_OPTS% -L" )
  if defined PACKER_DEBUG if not "%PACKER_DEBUG%" == "0" set "CURL_OPTS=%CURL_OPTS% --verbose"
  
  set curl=
  for %%i in (curl.exe) do set curl=%%~$PATH:i
  if defined curl goto curl
  