Resolve tools/testein.py failure on OS X

This should fix #119. 

The arguments to `ps` do not translate nicely between versions, unfortunately, so it won't suffice to just have a single command. Instead, I changed it to try to run the GNU version first, and if that fails, then try the version that should work on OS X.