US nut maker John B. Sanfilippo & Son has booked a rise in half-year profits despite a dip in sales as the company drove efficiency gains and benefited from lower commodity costs.