jpeg2ps returns a failure code if not given a jpeg. I could just test for jpeg2ps executable existence.