fix check_listening for solaris.

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