Fix file length issues with file tree storage driver