Several small bug fixes:

* Branch to the instruction after a read on a memcmp check
* Don't resolve isatty for stdin
* Don't clobber FDs due to calls that use them in a read-only manner, e.g. fstat.