Fix reader being unable to find the first file if given a directory name