Use system call to run git command