Use vim-rails plugin to determine rails root directory