Change model detection on Solaris.

Uses the same command as in druntime makefile.