scripts: fixed pre-commit hook: added missing "git add [filename]" after changes made by the hook script.