Fixed exception when there's no remote git origin.

Resolved issue #41