cosmetic fix and important syntax error fix

I did a bunch of work on the sentry puppet module a while ago; I think you should let me know if it's useful or not and either pull or close the request.

Thanks,
Thomas