Fix git scripts for GNU systems