Fix some old bugs in SoftwareRepository.

fixes #76