Check for modinfo in /sbin if it doesn't appear on the PATH. If it's not found on the PATH or in /sbin, the command will default back to modinfo so the user sees the error message about adding it to their PATH.