Section 125. The expense of supporting a prisoner transferred from a jail or house of correction in one county to another, removed from the Massachusetts Correctional Institution, Bridgewater to a house of correction, or sentenced to a jail or house of correction in a county other than that in which he was convicted, may be paid by the county where he was sentenced. If the amount to be paid cannot be agreed upon by the county commissioners of the two counties, it may be determined by the superior court sitting in either county.