But no debtor shall be entitled to relief under this act unless he shall have resided within this commonwealth for six months immediately preceding his application to the court, or shall have been confined in jail for three months immediately preceding such application.
39 P.S. § 243