anchor.diff:      end.
   
   load_vm_args() ->
  -    case application:get_env(riaknostic, etc) of
  -        undefined ->
  +    case filelib:is_dir(etc_dir()) of
  +        false ->
               {error, "Cannot find Riak configuration directory!"};
  -        {ok, Path} ->
  -            VmArgs = filename:join([Path, "vm.args"]),
  +        true ->
  +            VmArgs = filename:join([etc_dir(), "vm.args"]),
               case file:read_file(VmArgs) of
                   {error, Reason} ->
                       {error, io_lib:format("Could not read ~s, received error ~w!", [VmArgs, Reason])};
  
positive.code:                _ ->
                     data_directory(KVBackend)
             end,
      {ok, Base} = application:get_env(riaknostic, base),
      [ filename:absname(Dir, Base) || Dir <- Dirs, Dir =/= undefined ].
  
  %% @doc Get a key out of the app.config file, or if it doesn't exist,
  %%      return the Default. See also get_app_env/2.
  
negative.code:     end.
  
  load_app_config() ->
      case filelib:is_dir(etc_dir()) of
          false ->
              {error, "Cannot find Riak configuration directory!"};
          true ->
              AppConfig = filename:join([etc_dir(), "app.config"]),
              case file:consult(AppConfig) of
                  {ok, [Config]} ->
                      application:set_env(riaknostic, app_config, Config);
  