core: config: clenaup: use glob instead of listdir

Change-Id: Ia11f738e1b58d717e91b84483b1a96cb0bbc94e8
Signed-off-by: Alon Bar-Lev <alonbl@redhat.com>