scripts: fix commit check of first word