var path = require('path')

function getTaskConfig() {
  // Use if already defined
  if(global.TASK_CONFIG) {
    return global.TASK_CONFIG
  }

  // Use provided object
  if (process.env.TASK_CONFIG) {
    return process.env.TASK_CONFIG
  }

  // Load from path
  if (process.env.TASK_CONFIG_PATH) {
    return require(path.resolve(process.env.PWD, process.env.TASK_CONFIG_PATH))
  }

  try {
    // Default Path
    return require(path.resolve(process.env.PWD, 'config/task-config'))

  } catch(e) {
    // Default
    return require('../task-config')
  }
}

module.exports = getTaskConfig()

@@ -19,16 +19,39 @@
 ('path')
+%0Avar fs = require('fs')
 %0A%0Afuncti
@@ -408,53 +408,25 @@
 %0A%0A  
-try %7B%0A    // Default Path%0A    return require(
+var configPath = 
 path
@@ -476,43 +476,81 @@
 ig')
-)
 %0A%0A  
-%7D catch(e) %7B%0A    // Default%0A  
+if (fs.existsSync(configPath)) %7B%0A    return require(configPath)%0A  %7D%0A%0A
   re
@@ -580,20 +580,16 @@
 onfig')%0A
-  %7D%0A
 %7D%0A%0Amodul

Remove try/catch in get-task-config