No account or demand requiring the certificate of the comptroller or warrant of the governor shall be paid from an appropriation unless it has been authorized and approved by the head of the department, office, commission or institution for which it was contracted; nor shall any appropriation be used for expenses, except gratuities and special allowances by the general court, unless properly appro