Fix test_ssh_cat failure in PyPy

Call rstrip on output and compare to string without trailing newline

PyPy strings often seem to be missing a trailing newline that CPython
strings have.