fix variable checks for VM_PATH