[common] clean up config_file.c, use C Macro in the right way.