tools: fix readelf parsing with more than 100 sections
This fixes readelf parsing for SDK builds when an ELF has more than 100
sections. The parsing logic previously assumed that section IDs could only
go up to 99 (2 digits), this makes it look for a closing bracket instead.
Signed-off-by: Tamme Schichler <pebble-firmware@schichler.dev>