(QENG-1033) Reset additional_pkgs in a way supported by all Ruby versions