Update lastModifiedFileInDir.ml

add closedir