Fix download strategy for SVN HEAD

After converting to Pathname to create paths, using '+=' will result in
path concatenation by '/', which result in weird path like
'gcc--svn/-HEAD'. This patch should fix this.

Closes #19233.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>