Make ModuleVariantsFromName work with ModuleProxy.

Bug: 377723687
Test: Unit tests and compare the ninja and mk files generated.
Change-Id: I3097ae420e0301b8e1319f83999fff35a6b32a40
1 file changed