Section 39. The debtor may, within the year before limited for redemption and irrespective of any tender, bring in the supreme judicial or the superior court in the county where the land lies, a civil action for redemption, under the two following sections.