fixup! minor: scanner: Change logic creating the path

7 jobs for maint-1.1_issue40041 in 25 minutes and 11 seconds (queued for 2 seconds)
latest
Status Name Job ID Coverage
  Test
passed python36tor035 #11689

00:10:55

passed python36tor041 #11690

00:10:50

passed python36tor042 #11691

00:10:50

passed python36torstable #11692

00:14:26

passed python37 #11693

00:18:33

passed python38 #11694

00:14:19

passed python39 #11695

00:14:12