fix duplicate file paths in RS::getDirectoryList