scripts: fix false positive in commit check