Correct options checks for commit hooks