anchor.diff:  
   %% compile dependencies and the app
   compile(Cwd, ConfigFile, Conf) ->
  -    Cwd = mad_utils:cwd(),
  -    %% add lib_dirs to path
  -    LibDirs = mad_utils:lib_dirs(Cwd, Conf),
  -    code:add_paths(LibDirs),
  -
       %% compile dependencies
       'compile-deps'(Cwd, ConfigFile, Conf),
   
  
positive.code:     maybe_invalid(Params),
      maybe_help(Opts, Params),
  
      Paths = ["ebin"|filelib:wildcard(filename:join(["deps", "*", "ebin"]))],
      code:add_paths(Paths),
      Cwd = mad_utils:cwd(),
      ConfigFile = get_value(config_file, Opts, "rebar.config"),
      ConfigFileAbs = filename:join(Cwd, ConfigFile),
      Conf = mad_utils:consult(ConfigFileAbs),
      Conf1 = mad_utils:script(ConfigFileAbs, Conf),
      Fun = fun(F) -> ?MODULE:F(Cwd, ConfigFile, Conf1) end,
      lists:foreach(Fun, Params).
  
  
negative.code: 
  %% compile a project according to the conventions
  'compile-app'(Cwd, ConfigFile, Conf) ->
      %% check sub_dirs if they have something to be compiled
      Dirs = [mad_utils:sub_dirs(Cwd, ConfigFile, Conf)] ++ [Cwd],
      mad_compile:foreach(fun mad_compile:app/2, Dirs, ConfigFile).
  