JENKINS-19943 Fix connection to Windows slaves outside us-east-1.

Hi, this fix had only been made for Unix slaves. I've made the same change for Windows slaves.