util: fix map return status

Simplify this while we're at it -- we don't care for the error count.
fix borky Makefile
remotes: move refcaching to disk

This speeds up a lot of operations substantially, at the cost of
occasionally being wrong for a little while when new packages are
added/removed from the repositories. Mostly, this is for the sake of
the completions.