Find rebar.config by walking up the directories

There is some code duplication with vim-erlang-compiler, but I haven't found a good way to get rid of that.