.zshrc: Use better method to detect escape sequences
.zshrc: Add fallback for non-GNU systems
.zshrc: Use more explicit names for parameters