Util.pm: optimize read_config_file by using /\G.../gc construct