Shorter and more conventional would be:

  if ee, ok := err.(*exec.Error); ok && ee.Err == exec.ErrNotFound {
      return vmVBMNotFound
  }