config: rewrite kernel cmdline parser to be in sync with existing kernel cmdline parameters

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>