Update java location and invoke-webrequest for windows tests