Set dir to root, not .svn (fixes a86b710)