Cleaning up path generation.

Tied arrays in zsh are worth switching for, if nothing else.