pre-commit.git.sh: Make script more portable

See https://wiki.ubuntu.com/DashAsBinSh#A.5B.5B