anchor.diff:      end.
   
   log_file(Suffix, Scope, Id, Env, Config) ->
  -    log_to(Suffix, Scope, Id,
  -           ?CONFIG(log_dir, Env, systest_env:default_log_dir(Config))).
  -
  -log_to(Suffix, Scope, Id, Dir) ->
  -    filename:join(Dir, logfile(Scope, Id) ++ Suffix).
  +    Default = filename:join(systest_env:default_log_dir(Config),
  +                            atom_to_list(Scope)),
  +    log_to(Suffix, Id, ?CONFIG(log_dir, Env, Default)).
  +
  +log_to(Suffix, Id, Dir) ->
  +    filename:join(Dir, logfile(Id, Suffix)).
   
   make_exec(FG, Detached, RpcEnabled, Config) ->
       FlagsGroup = atom_to_list(FG),
  
positive.code:                            true ->
                                 LogFile = log_file("-stdio.log", Scope,
                                                    Id, Env, Config),
                                 {ok, Fd2} = file:open(LogFile, [write]),
                                 {LogFile, Fd2};
                             false ->
                                 {"console", user}
                         end,
  
      log({framework, Id}, "Reading OS process id from ~p~n", [Port]),
      log({framework, Id}, "RPC Enabled: ~p~n", [RpcEnabled]),
      log({framework, Id}, "StdIO Log: ~s~n", [LogName]),
  
      %% we make a hidden connection by default, so as to protect
      %% any trace handling that is going on, and to avoid 'messing up'
  
negative.code:             Port = open_port(StartCmd, Detached),
              #exec{environment=Env} = StartCmd,
  
              if Detached == true -> link(Port);
                             true -> ok
              end,
  
              on_startup(Scope, Id, Port, Detached, RpcEnabled, Env, Config,
  