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

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


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

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