Add fn to check CF template validity

If my memory isn't lying to me, I think the return code wasn't actually useful here. (A lot of the AWS CLI stuff is rather half-baked from a unix CLI point of view.) So I had to see whether it produced any output. So I think `check_output` is actually what I want, thanks to the aws tool being lame. :-)