checkstyle: fix command-line script

Closes #19452.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>