Use old read/write logic for large files.

If a file is too large to fit in process address space, do not try
to mmap it and use read/write approach instead.

Suggested by:	jilles