fix SmartOS detection

I've fixed SmartOS detection.

"run_command('grep -q SmartOS /etc/release') " returns array
and Solaris 11 is detected as SmartOS.

To avoid this problem, I've added exit status check.