We've made a change that kudusync will not work when the destination is a sub directory of the source, this made running the script locally fail, I moved the artifacts (destination) so it won't be a sub directory of the source.