Remove useless pathExists calls

Some were before mkDir, which now complains if the directory already
exists; one was before writeFile, which will return an error anyway.

The remaining uses of pathExists do not directly precede I/O operations.