bash: git: add buildDir into getopts short opts
bash: git: fix getopts inside function (local OPTIND/OPTARG)