fix check_os to detect Solaris

I've fixed check_os to detect Solaris.