fix VM name extraction