Where an offence has been committed by a company, and is proved to have been committed with the consent or connivance of, or to be attributable to any wilful neglect on the part of a director, manager, secretary or other officer of the company, or a person who was purporting to act in any such capacity, that person as well as the company, shall be guilty of an offence.