avoid printing repo names with -q

This involves a bit of refactoring for funzies. The added function gets
optimized out anyways, but makes things a bit cleaner.

Fixes GH#10.