[RFC 1/8] unit tests: prepare for kdumpctl and kdump-lib.sh to be unit-tested