Use wildcard function instead of glob

Change-Id: Id765685841481b194d3e308f04dc07b375590225
New VM design

This is much more practical to implement. It isn't complete though.

Change-Id: Ia8ca0c0130dd263e4ddef56bd237196317c5d4d6