fix check_listening for solaris.

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

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

fix check_listening for solaris.