The path through that code is governed by the value of the 'type' attribute in the XML file, which can either be 'file' or 'code'. This in turn is governed by the PHP code which was used to generate those XML entries. In this case the PHP code in question is found in file x_person_s02.class.inc in the _cm_setJavaScript() method, with the lines beginning
$javascript['head'][]['code'] = 'whatever';
or
$javascript['head'][]['file'] = 'whatever';
I have tried swapping the values 'code' and 'file', but I cannot reproduce the problem you describe.
This does not explain the fact that the original unaltered code works on both my home PCs and my website, but only misbehaves on your PC. This points to some sort of problem on your PC, but I am at a loss to explain what exactly.