anchor.diff:      RestErls  = [Source || Source <- gather_src(SrcDirs, []) ++ MoreSources,
                              lists:member(Source, FirstErls) == false],
   
  +    % Sort RestErls so that parse_transforms and behaviours are first
  +    % This should probably be somewhat combined with inspect_epp
  +    SortedRestErls = [K || {K, _V} <- lists:keysort(2,
  +        [{F, compile_priority(F)} || F <- RestErls ])],
  +
  +
       %% Make sure that ebin/ is on the path
       CurrPath = code:get_path(),
       code:add_path("ebin"),
  -    rebar_base_compiler:run(Config, FirstErls, RestErls,
  +    rebar_base_compiler:run(Config, FirstErls, SortedRestErls,
                               fun(S, C) -> internal_erl_compile(S, C, OutDir) end),
       code:set_path(CurrPath),
       ok.
  
positive.code: delete_dir(Dir, Subdirs) ->
      lists:foreach(fun(D) -> delete_dir(D, dirs(D)) end, Subdirs),
      file:del_dir(Dir).
  
negative.code: -spec include_path(Source::string(), Config::#config{}) -> [string()].
  include_path(Source, Config) ->
      ErlOpts = rebar_config:get(Config, erl_opts, []),
      ["include", filename:dirname(Source)] ++ proplists:get_all_values(i, ErlOpts).
  
  -spec inspect(Source::string(), IncludePath::[string()]) -> {string(), [string()]}.
  inspect(Source, IncludePath) ->
      ModuleDefault = filename:basename(Source, ".erl"),
      case epp:open(Source, IncludePath) of
          {ok, Epp} ->
              inspect_epp(Epp, Source, ModuleDefault, []);
          {error, Reason} ->
              ?DEBUG("Failed to inspect ~s: ~p\n", [Source, Reason]),
              {ModuleDefault, []}
      end.
  
  -spec inspect_epp(Epp::pid(), Source::string(), Module::string(), Includes::[string()]) -> {string(), [string()]}.
  inspect_epp(Epp, Source, Module, Includes) ->
      case epp:parse_erl_form(Epp) of
          {ok, {attribute, _, module, ModInfo}} ->
              case ModInfo of
  