Help with macro not finding a folder

Hello community,
I am working on a macro that helps me with thresholding and calculation of image series. I’ve put it together with code copied here and there, and it may be far from the best way to execute this, but It works all the way down EXCEPT it hangs at line 142. The error is “Directory not found dest/ in line 142”. I cannot understand what’s wrong since it looks to me exactly the same code for both channels, but It works just for one but not for the other. Any help will be much appreciated!

macro "Macro1 Action Tool - C000 T2709A T8709B " {
dir=getDirectory(“Choose the Video Input Folder”);
print(dir);
C1= dir + “/C1/”;
C2= dir + “/C2/”;
C1b8= dir + “/C1b8/”;
C2b8= dir + “/C2b8/”;
destC1= dir + “/C1 Results/”;
destC2= dir + “/C2 Results/”;
File.makeDirectory(C1);
File.makeDirectory(C2);
File.makeDirectory(C1b8);
File.makeDirectory(C2b8);
File.makeDirectory(destC1);
File.makeDirectory(destC2);
list = getFileList(dir);

for (i=0; i<list.length; i++) {
if (endsWith(list[i], “.tif”)){
print(i + ": " + dir+list[i]);
open(dir+list[i]);
imgName=getTitle();
baseNameEnd=indexOf(imgName, “.tif”);
baseName=substring(imgName, 0, baseNameEnd);
run(“Set Scale…”, “distance=4.96 known=1 unit=µm global”);
run(“Split Channels”);

     selectWindow("C1-" + imgName);
             run("Image Sequence... ", "format=TIFF save=["+C1+imgName+"]");

selectWindow(“C2-” + imgName);
run(“Image Sequence… “, “format=TIFF save=[”+C2+imgName+”]”);
frameS=getNumber(“Choose the frame to use for 8bit Threshold”,150);
setSlice(frameS);
resetMinAndMax();
run(“8-bit”);
run(“Image Sequence… “, “format=TIFF save=[”+C2b8+imgName+”]”);
selectWindow(“C1-” + imgName);
setSlice(frameS);
resetMinAndMax();
run(“8-bit”);
run(“Image Sequence… “, “format=TIFF save=[”+C1b8+imgName+”]”);
close();
run(“Close All”);

listx = getFileList(C1b8);
listy = getFileList(C1);

// set batch mode to not see the images when opened
setBatchMode(true);

// start a for loop to process all image pairs one by one
for (i=0; i<listx.length; i++) {

// get the path to an image
incomingx = C1b8+File.separator+listx[i];
incomingy = C1+File.separator+listy[i];
open(incomingx);
title = getTitle();

run(“8-bit”);
run("adaptiveThr ", “using=[Mean] from=200 then=-7 output”);
run(“Invert”);
run(“16-bit”);
run(“Multiply…”, “value=300”);
run(“Set Scale…”, “distance=4.96 known=1 unit=µm global”);
run(“Invert”);
rename(“Mask”);
selectWindow(title);
run(“8-bit”);
run("adaptiveThr ", “using=[Weighted mean] from=9 then=-4 output”);
run(“Invert”);
run(“16-bit”);
run(“Multiply…”, “value=300”);
run(“Set Scale…”, “distance=4.96 known=1 unit=µm global”);
run(“Invert”);
rename(“Mask2”);
imageCalculator(“Add create”, “Mask”, “Mask2”);
run(“Invert”);
rename(“Mask3”);

open(incomingy); 
title=getTitle();
rename("Im");
imageCalculator("Subtract create", "Im", "Mask3");
rename("result");
// construct the output file name and path
outFile = destC1 +File.separator+ title + "_.tif";

// save the image
selectWindow("result");
saveAs("Tiff", outFile);
print("Done");
// close all open images
run("Close All");

}
//Convert file in file sequence
dest=destC1+File.separator;
run(“Image Sequence…”, “open=&dest sort”);
//Run the measurements and save them in excel
run(“Set Measurements…”, “area mean modal min integrated area_fraction limit display redirect=None decimal=1”);
run(“Measure Stack…”);
selectWindow(“Results”);
saveAs(“Results”);
listx = getFileList(C2b8);
listy = getFileList(C2);

// set batch mode to not see the images when opened
setBatchMode(true);

// start a for loop to process all image pairs one by one
for (i=0; i<listx.length; i++) {

// get the path to an image
incomingx = C2b8+File.separator+listx[i];
incomingy = C2+File.separator+listy[i];
open(incomingx);
title = getTitle();	

run("adaptiveThr ", “using=[Weighted mean] from=150 then=-6 output”);
run(“Invert”);
run(“16-bit”);
run(“Multiply…”, “value=300”);
run(“Set Scale…”, “distance=4.96 known=1 unit=µm global”);
rename(“Mask”);

open(incomingy); 
title=getTitle();
rename("Im");
imageCalculator("Subtract create", "Im", "Mask");
rename("result");
// construct the output file name and path
outFile = destC2 +File.separator+ title + "_.tif";

// save the image
selectWindow("result");
saveAs("Tiff", outFile);
print("Done");
// close all open images
run("Close All");

}
dest=destC2+File.separator;
run(“Image Sequence…”, “open=&dest sort”);
//Run the measurements and save them in excel
run(“Set Measurements…”, “area mean modal min integrated area_fraction limit display redirect=None decimal=1”);
run(“Measure Stack…”);
selectWindow(“Results”);
// construct the output file name and path

saveAs(“Results”);

print(" ");
print(“All done”);