You are correct, the version of yum install perl-File-Fetch is old. I used sudo cpanm install File::Fetch it now the script works almost completely except for -C from git:
What does it show when you run "git --version"? I suspect your version of git is older too.
I notice that your output from git does not show the "-C" option. That option has been around for a while, so I suspect your version of git is rather dated.
Note that the "-c" option is not the same as the "-C" option for git. So changing that won't work.
I am really not certain. You could try installing the perl JSON::XS package and see if that fixes this. I am reaching a bit here though. I see that the error is coming from JSON::PP, which is the native JSON backend. If you install JSON::XS it should switch to using that instead. We have seen other issues with using JSON::PP.