refactoring: use pathchooser in zsync plugin