(g)“Commandant”, when used in any provision of this Act with reference to any unit of the Force, means the officer whose duty it is under the rules or regulations or in the absence of such rules or regulations, by custom of the service, to discharge with respect to that unit, the functions of a Commandant in regard to matters of the description referred to in that provision;