getModulesDep: disallow regex submatches
At the moment modules in modules.dep are matched even on a submatch e.g. looking up "msm" ends up matching "snd-soc-msm8916-digital.ko" instead of "msm.ko". To fix this, disallow submatches using ^ and $.
This fixes a regression on msm8916 where the display driver is no longer included in the initramfs, breaking the splash screen.