make psvn compatible with svn 1.7+