Fix syntax error and add missing environment variable in pagerduty script

Various tweaks and fixes to 9605ed08831ea7a9b557b875a5e582c6c01911b1

 * Fixed syntax error
 * Add missing endpoint environment variable
 * Fix double ack typo in generateIncidentString
 * Use multiline strings in generateIncidentString