@@ -22,7 +22,7 @@ var _generateZip = function(_zip){
 var _getDependencyFolder = function(dep) {
     var depFolder = path.dirname(require.resolve(dep)) + path.sep;
     var subFolders = depFolder.split(path.sep);
-    var node_modules_index = subFolders.indexOf('node_modules') + 1; // Zero-based indexes
+    var node_modules_index = subFolders.lastIndexOf('node_modules') + 1; // Zero-based indexes
     var folders = subFolders.splice(0, node_modules_index + 1); // We select the next folder
     return folders.join(path.sep); // TODO throw better errors if require fails
 };