Launcher: fix bugs deleting profiles (Fixes #2188)