Update inputoutput.cpp

Some improvements in cv::Directory::GetListFilesR function