You're right, don't use credit cards to make the spacers (though in practice, the variations in the stack won't really matter). All my anti-racking spacers (4 or 5 of them) are made of gift cards or merchant cards (hotel access cards, e.g.) which are uniformly flat, unlike credit cards.
My solution is better than the commercial version because each card is thin, allowing for better matching of the workpiece's thickness.