Fix bug trying to use list version of cmd as string in errors