On the prior dependence of constraints on the tensor-to-scalar ratio