anchor.diff:                                  end;
                               _ ->
                                   [{"lib", filename:join(TempDir, "lib")},
  -                                 {"erts-"++ErtsVersion, filename:join(OutputDir, "erts-"++ErtsVersion)}]
  +                                 {"erts-"++ErtsVersion, filename:join(TempDir, "erts-"++ErtsVersion)}]
                           end]++ConfigFiles++OverlayFiles, [dereference,compressed]),
       ?log_info("tarball ~s successfully created!", [TarFile]),
       rlx_file_utils:remove(TempDir, [recursive]),
  
positive.code: update_tar(Release, State, TempDir, OutputDir, Name, Vsn, ErtsVersion) ->
      IncludeErts = rlx_state:get(State, include_erts, true),
      SystemLibs = rlx_state:get(State, system_libs, IncludeErts),
      TarFile = filename:join(OutputDir, Name++"-"++Vsn++".tar.gz"),
      file:rename(filename:join(OutputDir, Name++".tar.gz"), TarFile),
      erl_tar:extract(TarFile, [{cwd, TempDir}, compressed]),
      OverlayVars = rlx_overlay:generate_overlay_vars(State, Release),
      OverlayFiles = overlay_files(OverlayVars, rlx_state:get(State, overlay, undefined), OutputDir),
  
negative.code:             catch
                  E:R ->
                      rlx_file_utils:remove(TempDir, [recursive]),
                      erlang:error(?RLX_ERROR({tar_generation_error, E, R}))
              end;
          {ok, Module, Warnings} ->
              ?RLX_ERROR({tar_generation_warn, Module, Warnings});
  