The BBC’s director general has said the corporation is not trying to “game a number” on the amount of production spending in Scotland, as he was quizzed by MSPs about the hit show The Traitors.