contrib/rev2hash.sh: minor cleanup.
contrib/pre-commit.sh: minor cleanup.