Fixed a few errors with the naive pieced filesystem reader/writer