add additional file-extension check (bug 1770)