Ensure that the addin gets created.

Fix an issue where the addin file is only generated when running from
the gui.