Molecules in the Cep E-mm jet: evidence for shock-driven photochemistry?