title: Using the Node REPL to log the value of __dirname
body: <p>If I write a script like containing <code>console.log(__dirname);</code> logs the value of <code>__dirname</code>.  But if I try the same for the Node REPL like this happens:</p>
  
  <pre><code> &gt; console.log(__dirname)
   ReferenceError: __dirname is not defined
  </code></pre>
  
  <p>Thoughts?</p>