fix getfiles/dirsmatching