   # now because umbrella projects are not supported.
   defp mix_dep(%Mix.Dep{opts: opts} = dep, children) do
     from = Path.join(opts[:dest], "mix.exs")
-    deps = Enum.map(children, &to_dep({&1, []}, from))
+    deps = Enum.map(children, &to_dep(remote_dep(&1), from))
     {%{dep | manager: :mix, extra: [umbrella: false]}, deps}
   end
 

  defp make_dep(dep) do
    {%{dep | manager: :make}, []}
  end

  defp mix_children(opts) do
    from = Path.absname("mix.exs")

      extra = Dict.take(rebar, [:sub_dirs])
      deps  = if children do
        from = Path.absname("rebar.config")
        Enum.map(children, &to_dep(remote_dep(&1), from, :rebar))
      else
        rebar_children(rebar)
      end
