build: rename s4 compare_config_h.sh helper and add a s3 version of it