builtin-cat: Use getopts to parse command line arguments

Clean up builtin-cat.c by switching to getopts for command line argument
parsing.

Signed-off-by: Pekka Enberg <penberg@kernel.org>