gc.sh: add Git 1.8.5 and later gc.pid compatibility