git-svn: reduce stat() calls for a backwards compatibility check