Safest possible solution for omitFilesByMatching