The pulsar spectral index distribution