Use subproccess instead subshell for git calls