Fixed issue with template
Fixed issue with templated script that would cause the script to fail
when reporting back step '0' of x and calculate % of progress for the
workflow.  Inserted code to check for DIVBYZERO.