Added closedir call in method Appinfos.loadXDGDirectories to prevent too many open files error
A closedir call added to method Appinfos.loadXDGDirectories because everytime this method was called it opened all directories in XDG_DATA_DIRS without closing the previouse opened ones, slowly leading to the "Too many open files" error.