Check if modifyvm.name is set before use the hostname as vm name.

Check if modifyvm.name is set before use the hostname as vm name.
This way one can use different values for hostname and vm name
Previously even if the modify.vm value was set the hostname was subscribing this value