stand/kboot: Parse the command line args
Do the standard command line parsing... With a small twist to deal with
the quirks of booting via linuxboot to the initrd from the command line
in shell.efi and other observed oddities.
Sponsored by: Netflix
(cherry picked from commit e1ff7945e1b3a9af34f092d9cca72ed802671c20)