              end
     erts_vsn = Utils.erts_version()
     erts_dir = Path.join(prefix, "erts-#{erts_vsn}")
+    Logger.info "Including ERTS #{erts_vsn} from #{Path.relative_to_cwd(erts_dir)}"
     erts_output_dir = Path.join(output_dir, "erts-#{erts_vsn}")
     # Remove old one
     if File.exists?(erts_output_dir) do

          false -> get_apps(Application.spec(a), [a|acc])
        end
    end)
  end
  defp get_apps(nil, acc) do
    Enum.uniq(acc)

    String.starts_with?(app_dir, "#{:code.lib_dir()}")
  end

  defp get_apps(release), do: get_apps(release, true)
  defp get_apps(%Release{name: name, applications: apps}, show_debug?) do
    Application.load(name)
    children = get_apps(Application.spec(name), [name])
    apps = Enum.reduce(apps, children, fn
      {a, _}, acc ->
        case (a in acc) do
          true  -> acc
