Break out a util.inc.sh
cache even empty replies from the remote
fix warnings when exporting a checked out branch

Explicitly refer to the remote branch.