Fix syntax issues revealed by ksh -n. Make gitconfig work cross-platform.