   * `escript_embed_elixir` - if true embed elixir in the escript file
     Defaults to false
 
+  * `escript_embed_extra_apps` - embed additional applications
+    Defaults to []
+    This is only used if `escript_embed_elixir` is true.
+    Example: [EEx, IEx, Mix, ExUnit]
+
   * `escript_shebang`
     Defaults to "#! /usr/bin/env escript\\n"
 

    Mix.Task.run :compile, args
    project = Mix.project
    if project[:app] == :elixir do
      {:ok, {'mem', zip}} = :zip.create 'mem', elixir_files, [:memory]
      script = iolist_to_binary(["#! /usr/bin/env escript\n%%! -noshell\n", zip])
      :file.write_file('elixir', script)
      set_perms('elixir')

    get_files(File.join(["deps", atom_to_binary(dep), "ebin"]))
  end

  defp app_files(module) do
    {:file, e} = :code.is_loaded(module)
    get_files(File.dirname(e))
  end

