- Use `emulate -L zsh` to make all variables local.
- Use `shwordsplit` to interpret `$cmd` spaces correctly.
- Rename `$project` and `$file` variables to the more appropriate `$basedir`
and `$project`.
- `$PROJECT_PATHS/*` wasn't working correctly. You have to iterate over
its elements in order to use globbing with it.
- The `$projects:t` line wasn't necessary if we used `compadd`.
- `compadd` better supports destructuring an array with spaces in some
of its elements.