Alternative for __dirname in node when using the --experimental-modules flag : <p>I use the flag <code>--experimental-modules</code> when running my node application in order to use ES6 modules.</p>

<p>However when I use this flag the metavariable <code>__dirname</code> is not available. Is there an alternative way to get the same string that is stored in <code>__dirname</code> that is compatible with this mode?</p>
