Fix git-svn on Yosemite (which uses Perl 5.18)

git-svn stops working on Yosemite because it is unable to find the
SVN::Core module.

This should fix issue #31310.
Agreed. I made the change. Not really familiar with Perl, so I'm not sure if the regex pattern I chose is robust enough.