fix copy-packages in zsh (without breaking sh and bash)