anchor.diff:  %%%------------------------------------------------------------------------
   
   env_expand([] = L, _) ->
  +    L;
  +env_expand([{[_ | _] = Key, Value} | L], Lookup)
  +    when is_list(Value) ->
  +    [_ | _] = KeyExpanded = cloudi_environment:transform(Key, Lookup),
  +    [{KeyExpanded, cloudi_environment:transform(Value, Lookup)} |
  +     env_expand(L, Lookup)].
  +
  +env_reset(L) ->
       % remove environment variables set by CloudI execution
       [{"BINDIR", false},
        {"EMU", false},
  
positive.code:     true = filelib:is_regular(FilePath),
      [_ | _] = Directory,
      true = filelib:is_dir(Directory),
      EnvExpanded = env_expand(Env, cloudi_environment:lookup()),
      case User of
          undefined ->
              ok;
  
negative.code:         is_list(User) ->
              {erlang:open_port({spawn_executable, SUPath},
                                [{args, ["-s", FilePath, User]} | PortOptions]),
               ["cd '", Directory, "' && exec ", Exec, "\n"]}
      end,
      true = erlang:port_command(Shell, Command),
      request_output(Shell, []).
  