break out the extensions and file name filters rather than kludge them together.