Making basic git wrapper implementation a little more robust