(a) Any person who desires to obtain a license for dealing in or repairing motor vehicles in a municipality having a population of no less than twenty thousand shall first obtain and present to the commissioner a certificate of approval of the location for which such license is desired from the board or authority designated by local charter, regulation or ordinance of the town, city or borough wherein the business is located or is proposed to be located, except that in any town or city having a zoning commission, combined planning and zoning commission and a board of appeals, such certificate shall be obtained from the zoning commission. The provisions of this section do not apply to (1) a transfer of ownership to a spouse, child, brother, sister or parent of a licensee, (2) a transfer of ownership to or from a corporation in which a spouse, child, brother, sister or parent of a licensee has a controlling interest, or (3) a change in ownership involving the withdrawal of one or more partners from a partnership.

      (b) Any person who desires to obtain a license for dealing in or repairing motor vehicles in a municipality with a population of less than twenty thousand shall first obtain and present to the commissioner a certificate of approval of the location for which such license is desired from the board or authority designated by local charter, regulation or ordinance of the town, city or borough wherein the business is located or is proposed to be located, except that in any town or city having a zoning commission, combined planning and zoning commission and a board of appeals, such certificate shall be approved by the board of appeals. In addition thereto, such certificate shall be approved by the chief of police where there is an organized police force or, where there is none, by the commander of the state police barracks situated nearest to such proposed location. The provisions of this section shall not apply to (1) a transfer of ownership to a spouse, child, brother, sister or parent of a licensee, (2) a transfer of ownership to or from a corporation in which a spouse, child, brother, sister or parent of a licensee has a controlling interest, or (3) a change in ownership involving the withdrawal of one or more partners from a partnership.