fix check_listening_with_protocol for solaris.

fix #209 with adding '\' to escape
and removing 'Idle' which is not needed.

I forgot why I added 'Idle'.