 
   defp extra_apps_in_app_tree(app) do
     _ = Application.load(app)
+
     case Application.spec(app) do
       nil ->
         []
+
       spec ->
-        applications = Keyword.get(spec, :applications, []) ++
-                       Keyword.get(spec, :included_applications, [])
+        applications =
+          Keyword.get(spec, :applications, []) ++ Keyword.get(spec, :included_applications, [])
+
         Enum.flat_map(applications, &extra_apps_in_app_tree/1)
     end
   end
 
   defp app_files(app) do
     case :code.where_is_file('#{app}.app') do
-      :non_existing -> Mix.raise "Could not find application #{app}"
+      :non_existing -> Mix.raise("Could not find application #{app}")
       file -> get_files(Path.dirname(Path.dirname(file)))
     end
   end


        beam_paths =
          [files, deps_files(), core_files(escript_opts, language)]
          |> Stream.concat
          |> prepare_beam_paths()
          |> Map.merge(consolidated_paths(project))

        tuples = gen_main(project, escript_mod, main, app, language) ++
                 read_beams(beam_paths)
        tuples = if strip_beam?, do: strip_beams(tuples), else: tuples

        case :zip.create('mem', tuples, [:memory]) do

          load_config(@config)
          start_app(@app)
          args = Enum.map(args, &List.to_string(&1))
          Kernel.CLI.run(fn _ -> @module.main(args) end, true)

        error ->
          io_error(["Failed to start Elixir.\n", :io_lib.format('error: ~p~n', [error])])
          :erlang.halt(1)
      end
    end
