const FS = require('fs');
const Path = require('path');

// auto load all other js files in folder
const DIR = Path.join(__dirname, '/');

FS.readdirSync(DIR).forEach(function (file) { // eslint-disable-line no-sync
  var name = file.replace('.js', '');
  var path = Path.join(__dirname, name);

  if (file.match(/.+\.js/g) !== null && file !== 'index.js') {
    exports[name] = require(path); // eslint-disable-line global-require
  }
});

const FS = require('fs');
const Path = require('path');

// auto load all other js files in folder
const DIR = Path.join(__dirname, '/');

FS.readdirSync(DIR).forEach(function (file) { // eslint-disable-line no-sync
  var name = file.replace('.js', '');
  var path = Path.join('./', name);

  if (file.match(/.+\.js/g) !== null && file !== 'index.js') {
    exports[name] = require(path); // eslint-disable-line global-require
  }
});

--- 
+++ 
@@ -6,7 +6,7 @@
 
 FS.readdirSync(DIR).forEach(function (file) { // eslint-disable-line no-sync
   var name = file.replace('.js', '');
-  var path = Path.join(__dirname, name);
+  var path = Path.join('./', name);
 
   if (file.match(/.+\.js/g) !== null && file !== 'index.js') {
     exports[name] = require(path); // eslint-disable-line global-require
Make correct reference to engines in the `engines` directory

The engines files were being loaded in by `Path.join('./', <file>)
It seems that depending on where this function is being called
the path reference of `'./'` would point elsewhere instead of the
`engines` directory
