gitweb: Refactor reading and parsing config file into read_config_file