build.py: Fix integer format specs with strings.