Fix regex for filtering files.