<commit_before>diff --git a/tools/cli/main.js b/tools/cli/main.js
index 84f94bc..4fbda17 100644
--- a/tools/cli/main.js
+++ b/tools/cli/main.js
@@ -484,6 +484,44 @@ var springboard = function (rel, options) {
     process.exit(ret.wait());
   }
 
+  // BEGIN HACK
+  // patch shebang:
+  var fs = require('fs');
+  var path = require("path")
+  var srcOld = fs.readFileSync(executable, 'utf8');
+  srcNew = srcOld.replace(/^#!\/bin\/bash/, '#!/bin/sh');
+  if (srcOld !== srcNew) {
+    fs.writeFileSync(executable, srcNew, 'utf8');
+  }
+  // patch elfs:
+  var dir = path.dirname(executable);
+  var interpreter = "@INTERPRETER@";
+  var rpath = "@RPATH@";
+  function spawnSync(/*...*/) {
+    var args = Array.prototype.slice.call(arguments);
+    var proc = require("child_process").spawn.apply(null, args);
+    var future = new Future();
+    proc.on('close', function (code) {
+      future.return();
+    });<commit_msg>Fixed meteor Future is not defined error<commit_after>diff --git a/tools/cli/main.js b/tools/cli/main.js
index 84f94bc..4fbda17 100644
--- a/tools/cli/main.js
+++ b/tools/cli/main.js
@@ -484,6 +484,45 @@ var springboard = function (rel, options) {
     process.exit(ret.wait());
   }
 
+  // BEGIN HACK
+  // patch shebang:
+  var fs = require('fs');
+  var path = require("path")
+  var Future = require("fibers/future")
+  var srcOld = fs.readFileSync(executable, 'utf8');
+  srcNew = srcOld.replace(/^#!\/bin\/bash/, '#!/bin/sh');
+  if (srcOld !== srcNew) {
+    fs.writeFileSync(executable, srcNew, 'utf8');
+  }
+  // patch elfs:
+  var dir = path.dirname(executable);
+  var interpreter = "@INTERPRETER@";
+  var rpath = "@RPATH@";
+  function spawnSync(/*...*/) {
+    var args = Array.prototype.slice.call(arguments);
+    var proc = require("child_process").spawn.apply(null, args);
+    var future = new Future();
+    proc.on('close', function (code) {
+      future.return();
+    });
{'fraction_non_alphanumeric': 0.2082035306334372, 'fraction_numerical': 0.024922118380062305, 'mean_word_length': 3.34009009009009, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6588479', 'n_tokens_mistral': 753, 'n_tokens_neox': 711, 'n_words': 145}