Fix post deploy so failures cause a deploy failure

There was an error generating the cronjob that would have been
highlighted if we failed the script when any of the commands failed.