Added option of specifying the commit SHA as a parameter which may contain environment variables.
Improved logging of exceptions. Will now log the entire stack trace instead of just the message.