utils: Add kargs retrieval function

Change-Id: I23f317273ad95e1c1febdcfec69998b924c9c961
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>