Fix githooks/pre-commit mode.

It should be executable.
Refs #8804