Refactor out sysconfig handling

yes, I also consider it, but it was duplicate of sys_agent path...maybe add shortcut?