util: extract get_process_name from xmlconfig.c