update travis script
Add extension check