Add support for 0 byte files, including test case