Another attempt at excluding irrelevant files