Add pre-commit hook script to filter out pdb.