anchor.diff:              ok;
           Deps ->
               exec("mkdir", ["-p", ?DEPS_PATH]),
  -            LibDirs = get_value(lib_dirs, Conf, []),
  -            %% check sub_dirs if they have something to be cloned
  -            check_libdirs(LibDirs, fun do_clone_deps/1),
               do_clone_deps(Deps)
       end.
   
   %% compile dependencies and the app
   compile(Dir) ->
  -    RebarFile = rebar_conf_file(Dir),
  +    Dir1 = filename:absname(Dir),
  +    RebarFile = rebar_conf_file(Dir1),
       Conf = consult(RebarFile),
       %% check sub_dirs if they have something to be compiled
  -    check_libdirs(get_value(lib_dirs, Conf, []), fun compile_deps/1),
  -    check_libdirs(get_value(lib_dirs, Conf, []), fun compile_app/1),
       compile_deps(get_value(deps, Conf, [])),
  -    compile_app(Dir).
  +    subdirs(Dir1, get_value(sub_dirs, Conf, []), fun compile_app/1),
  +    compile_app(Dir1).
   
   %% compile a project according to the conventions
   compile_app(Dir) ->
       AbsDir = filename:absname(Dir),
       SrcDir = src(AbsDir),
  -    case erl_files(SrcDir) of
  +    Files = erl_files(SrcDir) ++ app_src_files(SrcDir),
  +    case Files of
           [] ->
               ok;
           Files ->
  
positive.code:         _ -> Default
      end.
  
  check_libdirs([], _) ->
      ok;
  check_libdirs([H|T], Fun) ->
      Dir = filename:absname(H),
      Conf = rebar_conf_file(Dir),
      check_libdirs(get_value(sub_dirs, Conf, []), Fun),
      Fun(get_value(deps, Conf, [])),
      check_libdirs(T, Fun).
  
  %% schema_to_git(X) ->
  %%     re:replace(X, "https://", "git://", [{return, list}]).
  
  %% schema_to_https(X) ->
  %%     re:replace(X, "git://", "https://", [{return, list}]).
  
negative.code:     Ebin = ebin(AbsDir),
      code:add_path(Ebin),
  
      Conf = consult(rebar_conf_file(AbsDir)),
      case get_value(deps, Conf, []) of
          [] ->
              ok;
          Deps ->
              code:add_paths(deps_ebin(Deps))
      end.
  %% TODO: add lib_dirs to the code path
      %% LibDirs = get_value(lib_dirs, Conf, []),
      %% libdirs(Dir, LibDirs, fun update_path/1).
  
  init() ->
      {ok, Cwd} = file:get_cwd(),
  