Fix bug in search .svn and .git pattern