Refactor out sysconfig handling

Maybe this one makes more sense as a class method. Something like ```sc = Sysconfig.from_system```