refactor: move path generator to a new file.

I may have first used it in zip.go, but it's not really ralated to
zipping.