title: node.js require cannot find custom module
body: <p>Here is the project structure:</p>
  
  <pre><code>/
    app.js
    package.json
    /node_modules
    /app
      config.json
      /frontend
        assets and html tpls
      /modules
        couch.js
        raeume.js
        users.js
  </code></pre>
  
  <p>I require config.json, raeume.js and users.js from app.js and it all works fine.</p>
  
  <pre><code>var config   = require('./app/config');
  var raeume   = require('./app/modules/raeume');
  var users    = require('./app/modules/users');
  </code></pre>
  
  <p>Then I require config.json and couch.js from user.js the same way and it won't find anything.</p>
  
  <pre><code>var couch     = require('./app/modules/couch');
  var config    = require('./app/config');
  </code></pre>
  
  <p>I guess it should find it. After some research I saw a diverse landscape of problems inclusive how node is compiled. Thus included: I work on osx 10.8 with node v0.10.7.</p>