The script currently generates a configuration which convert units like millimetre and centimetre to themselves (with a factor of 1) rather than to multiples of metre with the appropriate factor. Presumably something changed in the Wikidata data model, and we need to adjust the SPARQL queries in the script.
This can be tested locally, without production access – run php repo/maintenance/updateUnits.php --sparql https://query.wikidata.org/sparql and it’ll pull all its information from there.