     # TODO: We can remove the .ez extension on Elixir 2.0 since we always unzip since 1.3
     Mix.Local.path_for(:archive)
     |> Path.join(name <> "{,*.ez}")
-    |> Path.wildcard
+    |> Path.wildcard()
   end
 
-  defp remove_previous_versions([]),
-    do: :ok
-  defp remove_previous_versions(previous),
-    do: Enum.each(previous, &File.rm_rf!/1)
+  defp remove_previous_versions([]), do: :ok
+  defp remove_previous_versions(previous), do: Enum.each(previous, &File.rm_rf!/1)
 end

    with {:ok, [_comment, zip_first_file | _]} <- :zip.list_dir(contents),
         {:zip_file, zip_first_path, _, _, _, _} = zip_first_file,
         [zip_root_dir | _] = Path.split(zip_first_path) do

      Path.join(Path.dirname(ez_path), zip_root_dir)
    else
      _ ->
        Mix.raise "Installation failed: invalid archive file"
    end
  end


    remove_previous_versions(previous)

    File.mkdir_p!(dir_dest)
    {:ok, _} = :zip.extract(contents, cwd: dir_dest)
    Mix.shell().info([:green, "* creating ", :reset, Path.relative_to_cwd(dir_dest)])

    ebin = Mix.Local.archive_ebin(dir_dest)
    Mix.Local.check_elixir_version_in_ebin(ebin)
