IsRebar3 = erlang:function_exported(rebar3, main, 1),
Rebar2Deps = [{unicode_util_compat, ".*",
               {git, "https://github.com/benoitc/unicode_util_compat.git",
                {tag, "0.3.1"}}}
             ],
case IsRebar3 of
    true ->
        CONFIG;
    false ->
        lists:keyreplace(deps, 1, CONFIG, {deps, Rebar2Deps})
end.
