toolbox-version: grab only the commit hash instead of the commit message

This change prevent toolbox-version to keep too many lines when it updates
src/version.h, which was happening when the commit message contains the
word "commit".