added auto shutdown of vm using pexpect.
removed regex_find function as it was not needed. Decided to use pexpect
as it was the easiest way to find the id of the virtual machine using
the hostname without running vm-list twice.