minor bug fixes for hadoop impl with regard to listing files within a directory