fix check_listening_with_protocol for solaris.

fix lack of '\' to escape
and remove 'Idle' which is not needed.

I forgot why I added 'Idle'.
Merge pull request #215 from ftnk/fix-check_listening_with_protocol-for-solaris

fix check_listening_with_protocol for solaris.