   console.log '\n' ##
   console.log result ## XXX DEBUG
   console.log '\n' ##
-  runNinja result
+  runNinja result, mistdir
 catch e
   console.error 'mist:', e.toString()
   throw e # XXX DEBUG


try
  mistfile = findMist()
  console.log 'evaporating Mistfile at', mistfile
  try
    result = MistParser.parse fs.readFileSync(mistfile).toString()


ninjaProc = process.env.NINJA || 'ninja'

runNinja = (ninja, base)->
  console.log 'platform:', os.platform()
  switch os.platform()
    when 'darwin' or 'linux'
