in reply to Unix-Windows pathnames

If you do the chdir like this:
chdir $rel_path or die "chdir failed on $rel_path: $!\n";
You will probably get a better idea of what's going wrong -- better even than anything we could guess at, based on what we know about your situation.