I also had to `tail -n1` the output here, because it didn't like `local ROOT` assignment of a multi-line statement.

These might be due to bugs in zsh [5.0.2 x86_64-apple-darwin13.0], but all I know is this way works, where as before copy-packages just failed (with using `local`) and only copied the first package before my first patch was applied.