Added more debugging to artifact uploading.