Don't rely on $path/format being a directory

At least from subversion 1.6 $path/format is a plain file, not a directory