`ps -lx` on OS X high sierra returns UID as the first column, so the parsing code returns the wrong value.