#651711 perl: Check that git exists before trying to use it