Recurse into folders in getallvms.py

Depth protection is used to avoid infinite recursion.

[Merged after edit by joshk0]