fix copy-packages in zsh (without breaking sh and bash)
merge in changes from creationix/nvm
Merge pull request #328 from naartjie/master

fix copy-packages in zsh (without breaking sh and bash). Closes #223, fixes #299.