Improved handling of artifact uploading.