Exit github_deploy if output folder is committed on source branch.

Fixes issues like #1301