config-list.mk: Extract target name correctly