sync.sh, utils/generate-db*.sh: check for used binaries.
utils/generate-db*.sh: prepare for 'set -e' a bit more.