I think it's supposed to be `SunOS`, not `solaris`.

Don't use regular expressions; Zsh is not compiled with `pcre` by default on all systems. Use globbing.