Detect machine more robustly in zshrc