some __git fixes (quoting variables and manpage additions)

I was having issues with __git failing because gencode-remote was generating chmod without a mode, but I never passed a --mode parameter.

I fixed it by quoting the mode variable. I went ahead and quoted some other variables and added the optional parameters to the __git man.text.