title: How to get working directory in node-webkit
body: <p>I've got a simple program that can be run from command line.
  This program is for live preview of markdown files.
  When i'm packaging the app with </p>
  
  <pre><code>cat $NW/nw marknow.nw &gt; marknow
  </code></pre>
  
  <p>and running from different location:</p>
  
  <pre><code>./build/marknow ../relative/path/to/file.md
  </code></pre>
  
  <p>I can't get current working directory.</p>
  
  <pre><code>process.cwd()
  </code></pre>
  
  <p>is returning /tmp/something???</p>
  
  <p>How can I get working directory in node-webkit? Directory from which <code>./build/marknow ../relative/path/to/file.md</code> was called.</p>