Section 11. An action founded on any contract made or act done, if made or done by any person acting as the executor, administrator or other legal representative of the estate of a deceased person, shall be brought within one year, or, if made or done by any person acting as trustee, guardian or conservator, shall be brought within two years, after the right of action accrues; provided, that this section shall not apply to actions upon probate bonds, or to actions in favor of the estate of which such person shall have been such legal representative, or to actions in favor of a beneficiary or ward, or to actions brought by the commonwealth.