Small improvement for Git script