Add retry logic to knox's putFile command.