Fix broken file-existence tests.

These still don't test for whether the given filename points
to a file that actually exists (other errors might keep us from
opening the file). But close enough.