Refactor out sysconfig handling

it is on https://github.com/yast/yast-bootloader/pull/190/files#diff-9f2146f3a6220357f444fe60210d54b2R49