Extract `sysRepoPath` and `systemsJsonPath` into outer scope