support/script/scancpan: fix corelist check

module could be removed of the core,
so check if the module is currently in the core,
but not if the module was once time included in the core.