filesystem::RegularFile implementation bug fix.