Fix git completion to work on bash on freebsd and macosx