Fix commit message hook

Related Github issues
None

Working branch
master