Fix pre-commit script to allow rewording commit