Check diff then only commit if changes found

@mtrahan 

Since my previous code made working copy clean, we need to handle `git commit` erroring out when there's "nothing to commit". This happens now when deploy jobs are run, but nothing new was built.