Save AD paths when an application changes. Fixes #106.