baudehlo/node-phantom-simple — pull request #10 by wilriker (2013-10-17 09:41:53+00:00)
Title: Fixed detection of correct process and added Cygwin support

With using grep (in Linux) or find (in Windows) without boundaries it could happen that the wrong process was found (for example if the PID was part of an open port of another application). By using boundaries (space before and line-end/slash after the PID) this mismatch can no longer happen. I know this was unlikely under Linux but I also fixed it there.

By coincidence using findstr instead of find in Windows also added automatic cygwin support because there is no longer a collision for the find command.

This simplifies the solution for #8 and is related to #9.