Minor tweaks to emulated file code.