On the distribution of binary system mass ratios