Fixed legacy VM detection