refractor(zsh): use lib folder to simplify structure