Bug1770: add additional file-extension check