Add functions to locate the root directory

Searches for a root directory by detecting a root.vim
inside the root folder.