Fix bug in vm-console script