anchor.diff:  %% ===================================================================
   %% Internal functions
   %% ===================================================================
  +
  +sys_tuple(ReltoolConfig) ->
  +    case lists:keysearch(sys, 1, ReltoolConfig) of
  +        {value, {sys, Data}} ->
  +            {sys, Data};
  +        false ->
  +            ?ERROR("Failed to find {sys, ...} tuple in reltool.config.", []),
  +            ?FAIL
  +    end.
   
   load_config(ReltoolFile) ->
       %% Load the reltool configuration from the file
       case file:consult(ReltoolFile) of
  -        {ok, [{sys, ReltoolConfig}]} ->
  -            ReltoolConfig;
  +        {ok, Terms} ->
  +            Terms;
           Other ->
               ?ERROR("Failed to load expected config from ~s: ~p\n", [ReltoolFile, Other]),
               ?FAIL
  
positive.code:                        
  
  run_reltool(Config, ReltoolConfig) ->
      {ok, Server} = reltool:start_server([{sys, ReltoolConfig}]),
      case reltool:get_target_spec(Server) of
          {ok, Spec} ->
              dump_spec(Spec),
              TargetDir = target_dir(Config, ReltoolConfig),
              case file:make_dir(TargetDir) of
                  ok ->
                      ok;
                  {error, eexist} ->
                      %% Output directory already exists; if force=1, wipe it out
                      case rebar_config:get_global(force, "0") of
                          "1" ->
                              rebar_file_utils:rm_rf(TargetDir),
                              ok = file:make_dir(TargetDir);
                          _ ->
                              ?ERROR("Release target directory ~p already exists!\n", [TargetDir]),
                              ?FAIL
                      end
              end,            
              case reltool:eval_target_spec(Spec, code:root_dir(), TargetDir) of
                  ok ->
                      ok;
                  {error, Reason} ->
  
negative.code: %% first, or fall back to the release name if that's available. If neither
  %% is available, just use "target"
  %%
  target_dir(Config, {sys, ReltoolConfig}) ->
    case rebar_config:get(Config, target_name, undefined) of
        undefined ->
            case lists:keysearch(rel, 1, ReltoolConfig) of
  