Commit info should check if there is a remote repo.

This should fix #33