     end
 
     releases = get_releases(root_dir, erts_dir)
-    do_select_releases(releases, release, version)
+    do_select_releases(releases, String.to_charlist(release), String.to_charlist(version))
   end
 
   defp do_select_releases([], _release, _version) do


  # Returns the absolute path to an ERTS lib, or false if it doesn't exist
  defp get_erts_lib(erts_dir, name, vsn) do
    dir = Path.join([erts_dir, "..", "lib", "#{name}", "#{vsn}"])

    if File.exists?(dir) do
      dir

      is_current? ->
        # We're using the host ERTS, and it is a match for the release ERTS version
        # We just need to make sure the path is up to date
        fixed_libs =
          for {name, vsn, _dir} = lib <- libs do
            if is_erts_lib(erts_dir, name) do
              case get_erts_lib(erts_dir, name, vsn) do
                false ->
                  Log.error("Invalid RELEASES: Could not find #{name}:#{vsn} in #{erts_dir}")

                real_dir ->
                  {name, vsn, real_dir}
              end
            else
              lib
            end
          end

        {:release, release, version, erts_vsn, fixed_libs, status}

      :else ->
        # We didn't include ERTS, and the host version is not a match
