refactor machine/shared folder discover methods into crawler.py and console.py