Allow tolerance for EOF marker within last 1024 bytes of file (provided by martineau)