Another attempt at file extension matching