Fix read-only check.

The read-only check was backwards: it was returning True if the pipe had been opened succesfully in append-mode.  Invert it to get the proper sense.
Merge pull request #2 from saintaardvark/master

Fix read-only check.