.zshrc cleanups and better OS detection