script error handling cleanup
added option for debugging.
Using packer template vars for creds, fixed provision script errors. Packs succesfully