Correct regex file name matching as per Måns' suggestion