Fix problems with newly initialized repositories. (#17)