Prevent aborting when there's nothing to commit

Also add debugging information.
Merge pull request #50 from fernandoacorreia/debug-build

Prevent aborting when there's nothing to commit