trim ps output

this makes the tests pass on ubuntu 13.04, which returns leading whitespace in `ps` output