updated runCommand to get git version