Fix check installed and check running for solaris family

On Solaris 10 and 11, gnu grep is optional and grep does not work with '-x'.
Then check_installed and check_running use egrep (not gnu) in commands/solaris.rb 
and use gnu grep in commands/smartos.rb.