build handles zero-length files