On the automorphism group of cones and wedges