Rootfs: Proper handling of core and archs in target config

Signed-off-by: Anton Kolesov <Anton.Kolesov@synopsys.com>