Update pre-commit.sh

Fix parse error and path.