I have couple of build definitions that are using the "old" NuGet Installer task to restore the dependencies from our internal TFS feed (same collection); the feed url is specified through the NuGet source parameter:

The restore process is working fine as below:

Switching to the newer version of the task is causing the build failure:

How can I disable the connection attempt to 93.184.221.200:443 due to the fact that the build agent doesn't have internet access?
I'm using TFS 15.117.26714.0.
Update 1
I copied nuget.exe to c:\nuget folder then added the folder to the PATH environment variable. Same result
Update 2
I copied nuget.exe to C:\B\1_tool\NuGet\4.0.0\x64 folder; the result is below:
