Added support for both 1.8 and earlier versions of svn library.

Review: https://reviews.apache.org/r/27243