Move fix to tolerantFOpen instead

It makes more sense there I think. fopen() is only expected to work on
files, and since it's called tolerantFOpen it may as well be tolerant to
trying to open directories.