title: Issue with consign and express paths
body: <p>I'm currently working on some university coursework, which is essentially an API written in express. We're allowed to use other packages as long as we follow the spec. </p>
  
  <p>I'm trying to use <a href="https://www.npmjs.com/package/consign" rel="noreferrer">consign</a> for autoloading my models, middleware and routes. The problem I'm facing is the folder structure that we have to follow.</p>
  
  <pre><code>coursework
  |-- artifact
  |   |-- server
  |   |   |-- api
  |   |   |   |-- models
  |   |   |   |   `-- stories.js
  |   |   |   |-- middleware
  |   |   |   |   `-- stories.js
  |   |   |   `-- routers
  |   |   |       `-- stories.js
  |   |   |-- node_modules
  |   |   |-- package.json
  |   |   |-- package-lock.json
  |   |   `-- server.js
  |   `-- utilities
  |-- node_modules
  |-- webpages
  |-- package.json
  |-- package-lock.json
  `-- test.js
  </code></pre>
  
  <p>Inside of <code>artifact</code> is where all of our code goes, nothing else is touched. The root directory that contains <code>test.js</code> is where we will be assessed. From the root we run <code>npm test</code> (QUnit) and then it lists which tests have passed and which have failed. </p>
  
  <p>The problem is we have to start our server from the root directory by calling <code>node artifact/server</code> which is fine because it calls <code>artifact/server/server.js</code>.</p>
  
  <p>Inside of <strong><code>artifact/server/server.js</code></strong> I have the following code to initialise <strong><code>consign</code></strong>:</p>
  
  <pre><code>consign({ cwd: './artifact/server/api' })
      .include('models')
      .then('middleware')
      .then('routers')
      .into(app);
  </code></pre>
  
  <p>When I run <code>node artifact/server</code> from the <strong>root</strong> directory I get the following error:</p>
  
  <p><a href="https://i.stack.imgur.com/H0gPD.png" rel="noreferrer"><img src="https://i.stack.imgur.com/H0gPD.png" alt="Consign error"></a></p>
  
  <p>What's frustrating is if I change consign's <strong><code>cwd</code></strong> property to <code>api</code> and then start the server inside of <code>artifact/server</code> by calling <code>node server.js</code> it works perfectly fine.</p>
  
  <p>The problem is I need to be able to start the server from the root directory. I'm completely stuck as I do not know how I can modify consign to work from the root directory.</p>
  
  <p>Any ideas?</p>