util: hot patch file.exists for backcompat.