provisioner/shell: retry the upload if command fails as well

This improves reboot handling robustness
communicator/ssh: more error handlingin Upload