xlocalize: Fix file extension check