title: "ENOGIT git is not installed or not in the PATH" although git is in the user's path
body: <p>I'm setting up a TeamCity build project, in which I want to assemble a javascript web app, using a powershell script with the following contents:</p>
  
  <pre><code>npm install
  bower install
  grunt build
  </code></pre>
  
  <p>When TeamCity runs the script, I get an error </p>
  
  <pre><code>bower jquery-stopwatch#f1bdae95ace634169b50c4a2565116389668edc9
      ENOGIT git is not installed or not in the PATH
  </code></pre>
  
  <p>although if I log on to the build agent via RDP (using the same user account as the build agent service runs under) and run those command from a PS instance, everything works as expected (bower installs some fifteen more components before the script continues).</p>
  
  <p>Since the first step (<code>npm install</code>) takes a few minutes each time, trouble-shooting this through trial-and-error with the TeamCity build is very slow and tedious, but I haven't so far found any other way to reproduce.</p>
  
  <p>What else should I try? What could be the culprit?</p>