Fix issue where Git is being initiated regardless of -g parameter