Agent now determines if its running on a physical machine or virtual machine. closses #10