Detect git executable location