title: AssertionError: path must be a string is thrown when requiring own module
body: <p>I wanted to create a very minified version of <a href="https://github.com/poeticninja/hapi-ninja" rel="nofollow">hapi-ninja</a> and came across following problem:</p>
  
  <pre><code>var settings = require('./app/server/config/settings');
  var routes = require('./app/server/config/rout');
  </code></pre>
  
  <p>The first line works as it should an returns my modules. But the second line throws following Exception</p>
  
  <pre><code>AssertionError: path must be a string
  at Module.require (module.js:362:3)
  at require (module.js:380:17)
  at Object.&lt;anonymous&gt; (/home/hknlof/development/mygit/todos/app/server/config/rout.js:8:21)
  at Module._compile (module.js:456:26)
  at Object.Module._extensions..js (module.js:474:10)
  at Module.load (module.js:356:32)
  at Function.Module._load (module.js:312:12)
  at Module.require (module.js:364:17)
  at require (module.js:380:17)
  at Object.&lt;anonymous&gt; (/home/hknlof/development/mygit/todos/tryout.js:1:75)
  </code></pre>
  
  <p>I am running on Node v0.10.25 and <a href="https://github.com/poeticninja/hapi-ninja" rel="nofollow">hapi-ninja</a> is working fine. When I don't require the rout module it does work. My rout and settings modules look very much the same as in hapi-ninja. I isolated the two require statements in one file. Tried both on their own, still the same result. Can't get my head around this. Tried debugging but the value of the node internal <code>path</code> does never change to the above string. Encoding ist always utf-8.</p>