Fix the saving of the personal build tools

Hold the application alive when the personal build tools are saved.
And do the save (asynchronously) when the BuildToolsPreferences dialog
is closed.