Refactored how curl downloader captures debug content to try and work around ipv6 issues with some users