fix default repository protocol.
avoid harmless error messages on empty systems.