build: reduce printf() calls in generated build_options.c