diff --git a/lib/channel-mapping.js b/lib/channel-mapping.js
index <HASH>..<HASH> 100644
--- a/lib/channel-mapping.js
+++ b/lib/channel-mapping.js
@@ -12,7 +12,7 @@ function getChannelMapping() {
   } catch(e) {
     // Mapping might be given as a file path, try to find the file and JSON.parse it
     try {
-      var mainFolder = path.dirname(require.main.filename);
+      var mainFolder = process.cwd();
       var mappingPath = path.resolve(mainFolder, mapping);
 
       mapping = JSON.parse(fs.readFileSync(mappingPath));
Update channel mapping ot use process.cwd()