Change model detection on Solaris.

Uses the same command as in druntime makefile.
Merge pull request #2757 from redstar/solaris_make

Change model detection on Solaris.