kernel.mk: refine extra modules building rules