Find git using the GIT or PATH environment variables.

Avoids using shell=True with the subprocess module.
Only search /etc for settings if user directory not set.
Remove shell=True from subprocess module calls.