perf tools: Allow build-id with trailing zeros