improve `versions` tests by cd'ing into a clean slate
restore original IFS for hooks
test that IFS in hooks is correct

closes #379
Revert "Don't duplicate shims in PATH"

This reverts commit 03fa148e814d50aba8012dc94b866213a00ea8a9.