US nut maker John B. Sanfilippo & Son has reported a jump in quarterly profits despite a dip in revenue.