Merge pull request #2 from GeertJohan/master

Handle version overflow better. Add missing return.
Add missing return statement.
Caused a panic when repo could not be reached.