Added retry attempts to syncFiles.

Hey, I found I was getting errors when uploading large sets of files (10k+), which would cause the script to abort with error.

I've added a retry flow, to re-attempt the file for a maximum number of attempts.  From what i've seen, the next successive attempt usually succeeds.