modified is_running_vm function, put simple if condition