More scoping problems. Decided to take out gitcmd entirely.