Change BinaryDirTap to use hdfsLocalStream and refactor for easier debugging