Section 1. Fines and forfeitures exacted as punishments for offences or violation or neglect of any duty imposed by statute may, unless otherwise provided, be prosecuted for and recovered by indictment or complaint or by an action of tort in the name of the commonwealth in a court having jurisdiction of the offence or action.