Fix and cleanup svn check