Modified is_running_vm function, using cut