loop through `rbenv-hooks` output without using arrays