[Linter] Fix the license extension check