updated zshrc path check and functions