provisioner/shell: retry uploads if reboot [GH-282]