Refactor out separate functions for setting host file and auto activation
Fix bug revealed from the recent refactoring
Change meta-data paths for auto-activation and proxy