tools: update backported from nomad 3.6.1