Fix service hasstatus for Solaris 9
Fix Mark's commit to support Solaris 9