The CN/C15 N isotopic ratio towards dark clouds