diff --git a/bin/formats/cmd.js b/bin/formats/cmd.js
index <HASH>..<HASH> 100644
--- a/bin/formats/cmd.js
+++ b/bin/formats/cmd.js
@@ -7,18 +7,17 @@ var child_process = require('child_process');
 var fs = require('fs');
 
 module.exports = {
-  exec: function(command) { 
+  exec: function(command) {
+    if (fs.existsSync('done')) {
+      fs.unlinkSync('done');
+    } 
     // Run the command in a subshell
     child_process.exec(command + ' 2>&1 1>output && echo done! > done');
     // Block the event loop until the command has executed.
     while (!fs.existsSync('done')) {
       // Do nothing
     }
-    // Read the output
-    var output = fs.readFileSync('output');
-    // Delete temporary files.
-    fs.unlinkSync('output');
-    fs.unlinkSync('done');
-    return { stdout: output };
+    // Output
+    return { stdout: fs.readFileSync('output') };
   }
 };
\ No newline at end of file
fix : avoid errors when test crash (with temp files)