[mdtool] Initialize addin registry, better args handling