diff --git a/plugin/drupal.vim b/plugin/drupal.vim
index ff2f9ae..d7ece45 100644
--- a/plugin/drupal.vim
+++ b/plugin/drupal.vim
@@ -111,9 +111,9 @@ endfun
 " {{{
 function! s:DrupalRoot(path)
   let markers = {}
-  let markers.7 = ['index.php', 'cron.php', 'modules', 'themes', 'sites']
-  let markers.8 = ['index.php', 'core/authorize.php', 'core/modules',
-	\ 'core/themes', 'sites']
+  let markers.7 = ['index\.php', 'cron\.php', 'modules', 'themes', 'sites']
+  let markers.8 = ['index\.php', 'core[\/]authorize\.php', 'core[\/]modules',
+	\ 'core[\/]themes', 'sites']
   " On *nix, start with '', but on Windows typically start with 'C:'.
   let droot = matchstr(a:path, '[^\' . s:slash . ']*')
   for part in split(matchstr(a:path, '\' . s:slash . '.*'), s:slash)
