 
   defp delete_tmp_paths do
     tmp = String.to_charlist(tmp_path())
-    for path <- :code.get_path(), :string.str(path, tmp) != 0, do: :code.del_path(path)
+
+    :code.get_path()
+    |> Enum.filter(fn path -> :string.str(path, tmp) != 0 end)
+    |> Enum.each(&:code.del_path/1)
   end
 
   defp elixir_minor() do


  def in_tmp(which, function) do
    path = tmp_path(which)
    File.rm_rf!(path)
    File.mkdir_p!(path)
    File.cd!(path, function)
  end

      fixture_to_tmp(package, path)
    end)

    _ = Code.require_file(Path.expand("mix.exs"))

    {:ok, _} = Nerves.Env.start()
    Nerves.Env.packages()
  end

