Index: trunk/ippScripts/scripts/magic_destreak.pl
===================================================================
--- trunk/ippScripts/scripts/magic_destreak.pl	(revision 30293)
+++ trunk/ippScripts/scripts/magic_destreak.pl	(revision 30318)
@@ -194,9 +194,10 @@
         # if recoveryroot is a nebulous path we ignore the actual path and put the files in the
         # the same "directory" as the input files
-        $recoveryroot = "$dirname/REC_";
+        $recoveryroot = $dirname;
     } else {
+        # otherwise we put the files in recoveryroot. Regardless, we prefix the basename with 'REC_'
         $ipprc->outroot_prepare($recoveryroot);
     }
-    $recovery_path_base = $recoveryroot . $basename;
+    $recovery_path_base = "$recoveryroot/REC_$basename";
 }
 
