Adding debugging traces when download fails, and attempt to backport http_proxy fix from https://github.com/cloudfoundry/java-buildpack/pull/38