@mcjimenez @frsela does this works?

`consts` is not defined, but `caDir` is. if in line 79 you are `var caDir = require('../config.js').consts.caDir;`, you _need_ to use caDir directly, not `consts.caDir`.