scancommitforcc: avoid errors with disabled scancommitforcc option