hooks: Fix shebang on pre-commit hook

The pre-commit hook uses features that are not defined in the POSIX
shell. Fix the shebang so that it is correctly identified as a bash
script.

Part-of: <!1111>
8 jobs for main in 33 minutes and 55 seconds (queued for 58 seconds)