core: fix module path/filename resolving in processConfig